サブディレクトリ以下のみルートパスを変更する方法を質問します。
###ディレクトリ構造
test.com └/index.php └/sub └└/index.php
###1、ルートにあるファイルの参照
ファイル:test.com/index.php 記述内容:<a href="/index.php"> ↓ 参照:test.com/index.php
###2、サブにあるファイルの参照
ファイル:test.com/sub/index.php 記述内容:<a href="/index.php"> ↓ 参照:test.com/sub/index.php
###質問いたします
1,2の参照方法をhtaccessで実現させる方法はありますでしょうか?
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/11 04:15
2017/04/11 04:17
2017/04/11 04:20