A
A
Anton2019-06-14 17:25:28
Nginx
Anton, 2019-06-14 17:25:28

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; 
}

How to make an exception for the /bitrix/admin/ folder
?
Or maybe there is another way to remove index.php for the main page?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question