Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Like this
if ($request_uri ~ ^/index.(html|php)) { rewrite ^.*$ / permanent; }
It's easier (and better for SEO) to do a separate rewrite from "/index\.php" to "/"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question