Converting apache based rewrite rules to nginx

46 views Asked by At
IndexIgnore *
Options -Indexes 
Options +FollowSymLinks

RewriteEngine On
RewriteBase /
RewriteRule . index.php [QSA,L]

I have used automated conversion websites but for some reasons its not working.

1

There are 1 answers

0
Hardy Rust On

You should be fine with such rewrite in root location:

location / {
  rewrite ^/(.*)$ /index.php?$1 break;
  ...
}