ブラウザにhttp://www.example.com/index.phpと入力すると
、rewriteRule
を使用してhttp://www.example.com/web/index.phpにリダイレクトできます。 www.example.com/test.php
ですが、「test.php」ファイルは実際には web/ フォルダーには存在しません
。このファイルは /admin フォルダーに存在するため、 http://www.example.com/
にリダイレクトできますか管理者/test.php ? http://www.example.com/xxx.phpを
使用して別の URL にリダイレクトしますか?
以下は私の.htaccessですが、動作しません...
RewriteEngine オン
RewriteRule ^(.*)$ web/$1 [NC]
RewriteRule ^(.*)$ 管理者/$1 [NC]