Answer the question
In order to leave comments, you need to log in
How to make a redirect with an exception for a folder?
To remove index.php from url in nginx after server added to the first line:
# block access to /index.(php|htm|html)
if ($request_uri ~ "/index.(php|html?)") {
rewrite ^ /$1 permanent;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question