SOLVED OJS 3.2.1.2: problem to add new custom template, HTTP status code 302 Found

Hi,

I changed my rewrite rules with the same as @drugurkocak and everything was working after that.

My rewrite rules were as follows:

RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_NAME} ^journal-domain1.fr
RewriteRule ^api/v1(.)$ /index.php/journal1/api/v1$1 [R,L]
RewriteCond %{SERVER_NAME} ^journal-domain1.fr
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.)$ /index.php/journal1/$1 [QSA,L]

And I changed them with the same as @drugurkocak as follows:

RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_NAME} ^(www.)?journal-domain1.fr
RewriteRule ^api/v1(.)$ index.php/journal1/api/v1$1 [L,R=307]
RewriteCond %{SERVER_NAME} ^(www.)?journal-domain1.fr
RewriteCond %{REQUEST_URI} !/journal1/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.
)$ index.php/journal1/$1 [L]

HTTP status 302 changed in HTTP status 307 and it participated to solve the problem.

Thanks again to @drugurkocak.
Best regards.
Helene

1 Like