1

htaccess のリダイレクトに問題があります。以下は私が抱えている問題です。

メイン ドメインが実際に指しているルート フォルダーには、次のフォルダーがあります。これは、次の htaccess コードを使用して行われます

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteCond %{REQUEST_URI} !^/example/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /example/$1
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteRule ^(/)?$ example/index.html [L]

"exmaple" フォルダには次のサブフォルダがあります: newexample, newexample_beta URL "example.com/newexample" にアクセスすると、URL は "root/example/newexample" に内部的にリンクされる必要があります。しかし、URL は「example.com/example/newexample/」にリダイレクトされます。何をする必要があるか教えてください。

4

0 に答える 0