は、私のhtaccessファイルは、次のとおりです。先頭に追加ディレクトリモッズ書き換え
RewriteEngine On
RewriteBase /website/files/
RewriteRule ^home/?$ home.php [NC]
RewriteRule ^page/?$ page.php [NC]
このURLは動作します:
http://localhost/website/files/home
しかし、彼らが表示されるページ上のリンクの上にマウスを移動します以下のように:
http://localhost/page
の代わりに:
ページのすべてのリンク
http://localhost/website/files/page
は、以下のように設定されています。
<a href="/page">page</a>
がどのように私はhtaccessファイル内のすべてのURLにディレクトリを付加することができますか?
.htaccessはどこにありますか? – anubhava
ウェブサイトのディレクトリ - ウェブサイト/ファイル – user3312792