Answer the question
In order to leave comments, you need to log in
What to add to .htaccess to remove a link like site/index/?
I have a maintenance site and now htaccess is set up so that site and site/index links point to the index.php file at the root of the site. What can be added so that site/index is rewritten in site/?
Answer the question
In order to leave comments, you need to log in
https://codepen.io/xgad/pen/3dca3c1c396966acc4f8db...
https://codepen.io/sergiopedercini/pen/jmKdbj
https://codepen.io/saadeghi/pen/IBhfJ
The solution to the problem turned out to be:
Redirect 301 /index /
Redirect 301 /index/ /
In general, here is a good article on htaccess redirects
. Specifically, in your case,
add a line to htaccess :Redirect 301 /index.php /
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question