<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /japanese/index.php [L]
</IfModule>
を
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /japanese/index.php [L,R=301] </IfModule>に変更すると
あらゆるURLが/japanese/index.php にリダイレクトされます。
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
の部分で[ファイルがない]かつ[ディレクトリがない]場合
RewriteRule . /japanese/index.php [L,R=301]
を実行するということではないのでしょうか?
既存記事のURLもTOPにリダイレクトされます。
これはなぜでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2016/01/03 08:04
退会済みユーザー
2016/01/03 20:49
退会済みユーザー
2016/01/04 22:57