既に、.htaccessで他のページに転送をかけているものが取り消されてしまい困っています。
どうしたら、共存できるでしょうか?
http://www.aaaaa.jp/kkk/m/BB を
ガラケーからhttp://www.aaaaa.jp/mb/kkk/abc.htmlに転送
http://www.aaaaa.jp/kkk/index.phpを
ガラケーからアクセスした際、http://m.aaaaa.jp/kkk/index.htmlに転送
(.htaccessはhttp://www.aaaaa.jp/ に設置)
=================================================
RedirectPermanent /kkk/m/BB http://www.aaaaa.jp/mb/kkk/abc.html
SetEnvIf User-Agent "DoCoMo" UA=mobile
SetEnvIf User-Agent "UP\.Brower" UA=mobile
SetEnvIf User-Agent "KDDI-" UA=mobile
SetEnvIf User-Agent "J-PHONE" UA=mobile
SetEnvIf User-Agent "Vodafone" UA=mobile
SetEnvIf User-Agent "SoftBank" UA=mobile
SetEnvIf User-Agent "emobile" UA=mobile
SetEnvIf User-Agent "WILLCOM" UA=mobile
RewriteEngine On
RewriteBase /
# Redirect if mobile
RewriteCond %{REQUEST_URI} !/BB/$1
RewriteCond %{ENV:UA} ^mobile$
RewriteRule ^(.*)$ http://m.aaaaa.jp/kkk/index.html [L]
=================================================
コメント(0件)