Friendly URLs Nginx

1

I'm trying to create a friendly URL on my server, I previously 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;

But it is not redirecting as it should, when I try to access any page it plays to page 404

    
asked by anonymous 09.03.2018 / 19:22

0 answers