19
ルートURLをサブディレクトリにリダイレクトするための.htaccess rewrite
取得しようとしています www.example.com 直接行く www.example.com/store 複数のコードを試してみましたが、どれも機能しません。 私が試したこと: Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com$ RewriteRule (.*) http://www.example.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^(.+)\www.example\.com$ RewriteRule ^/(.*)$ /samle/%1/$1 [L] 何が悪いのですか?