Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: port .htaccess to nginx conf

$
0
0
I have tried this:
------------------------------------------------------
location / {
rewrite ^(.*)$ /index.php?q=$1 break;
}
------------------------------------------------------

And this:
-------------------------------------------------------
if ($request_filename !~ "index.php$"){
set $rule_0 1$rule_0;
}
if ($rule_0 = "1"){
rewrite ^/(.*)$ /index.php?q=$1 last;
}
--------------------------------------------------------

Not working, code 500, Internal Server Error.

Any comments?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>