失礼致しました。
自機で確認致しまた。(Apache+concrete5.7.4.2)です。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://xxxxxxx.co.jp/$1 [L,R,NE]
</IfModule>
Re: リダイレクト
2015年7月10日 at 17:11
.htaccessを以下に変更すれば、ご期待の動作に成るかと思います。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule ^(.*)index.php$http://xxxxxxx.co.jp/$1 [R=301,L]
</IfModule>
ドメインの部分は、実際のドメインに変えて下さいね。
Your post has been saved and will be published after approval by the forum moderator.
ぽき
Re: リダイレクト
残念ですが、index.phpは外れません。
最初のアクセスで、301が返ってきます。
また、ご教示通りにすると、http://xxxxxxx.co.jp/sample等の子ページが全て見れなくなります。