I want to redirect domain sub folder index.html
to it's root directory
Example
current: http://ift.tt/2yJVtZr
expected: https://example.com/en/
/en/
is sub folder in https://example.com
when user types http://ift.tt/2yJVtZr
they should be redirected to https://example.com/en/
I have used the following code but it is redirecting to https://example.com
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://ift.tt/2yPsDZL [R=301,L]
RewriteRule ^(.*)index$ http://ift.tt/2yPsDZL [R=301,L]
Aucun commentaire:
Enregistrer un commentaire