[英]htacces after ErrorDocument redirect url remains unchange
我阻止htaccess列出目录,但是在将其定向为索引后,URL不会更改。
如果用户访问http://www.searchme.com/images
它将页面重定向到主页,但URL保持不变http://www.searchme.com/images
因此,如果我单击任何链接,则该网址将变为http://www.searchme.com/images/about.php,而应变为http://www.searchme.com/about.php
#IndexIgnore /images/*
Options -Indexes
ErrorDocument 404 /searchme/index.php
ErrorDocument 403 /searchme/index.php
我应该在错误文档中提及整个路径
Options -Indexes
ErrorDocument 404 http://127.0.0.1/musaada/index.php
ErrorDocument 403 http://127.0.0.1/musaada/index.php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.