I just switched my server over from apache2 to nginx and now I am having some issues with my .htaccess rewrites.
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
I have gathered that in order to make this work on Nginx, I will need to edit the Nginx server block. Would anyone be able to tell me how? Thank you very much in advance.
try_files