L
L
lionscape2015-08-10 09:28:49
css
lionscape, 2015-08-10 09:28:49

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

3 answer(s)
R
Rustam Bainazarov, 2019-01-26
@DeniSidorenko

https://codepen.io/xgad/pen/3dca3c1c396966acc4f8db...
https://codepen.io/sergiopedercini/pen/jmKdbj
https://codepen.io/saadeghi/pen/IBhfJ

L
lionskape, 2015-08-10
@lionscape

The solution to the problem turned out to be:
Redirect 301 /index /
Redirect 301 /index/ /

W
webskills Community, 2015-08-10
@webskills

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 question

Ask a Question

731 491 924 answers to any question