1
I’m trying to create a Urlammable on my server,
previously I used apache with this htaccess:
RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?subtopic=$1
After switching to Nginx I started using:
rewrite ^(.*)$ /index.php?subtopic=$1;
However he is not redirecting as he should, when I try to access any page he plays to page 404
If possible put the code of your block. The
DocumentRootis that correct? Have you triedtry_files?– Valdeir Psr
tried via try_files too, I did not get the expected result, as it would be the correct one ?
– Marcos Pacheco
The
DocumentRootis correct? If possible post the code you tested usingtry_files– Valdeir Psr