简体   繁体   中英

htacces after ErrorDocument redirect url remains unchange

I am preventing directory listing by htaccess, but after it gets directed to index the url does not changes.

if user visits http://www.searchme.com/images

it will redirect the page to homepage, but the url remains the same http://www.searchme.com/images

so if I click on any link the url becomes http://www.searchme.com/images/about.php instead it should become http://www.searchme.com/about.php

 #IndexIgnore /images/*
 Options -Indexes
 ErrorDocument 404 /searchme/index.php
 ErrorDocument 403 /searchme/index.php

I should mention entire path , in error document

     Options -Indexes
     ErrorDocument 404 http://127.0.0.1/musaada/index.php
     ErrorDocument 403 http://127.0.0.1/musaada/index.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM