我使用本地主機上htaccess的,我的htaccess是:前面加上目錄國防部的所有URL重寫
RewriteEngine On
RewriteBase /website/files/
RewriteRule ^home/?$ home.php [NC]
RewriteRule ^page/?$ page.php [NC]
這個網址的工作原理:
http://localhost/website/files/home
但頁面上懸停在鏈接的時候都顯示如:
http://localhost/page
相反的:
http://localhost/website/files/page
在頁面所有鏈接設置爲:
<a href="/page">page</a>
我怎麼能在前面加上目錄htaccess的所有URL?
您的.htaccess位於何處? – anubhava
在網站目錄 - 網站/文件 – user3312792