[英]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.