RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (iPod|iPhone|Android.*Mobile|Windows.*Phone) [NC]
RewriteCond %{HTTP_REFERER} !*****.jp
RewriteRule ^index01\.html /s/index02.html [R=302]
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (iPod|iPhone|Android.*Mobile|Windows.*Phone) [NC]
RewriteCond %{HTTP_REFERER} !*****.jp
RewriteRule ^index03\.html /s/index04.html [R=302]
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (iPod|iPhone|Android.*Mobile|Windows.*Phone) [NC]
RewriteCond %{HTTP_REFERER} !*****.jp
RewriteRule ^index05\.html /s/index06.html [R=302]
逆に考えればどう?
RewriteEngine On RewriteCond %{HTTP_USER_AGENT} !(iPod|iPhone|Android.*Mobile|Windows.*Phone) [NC,OR] RewriteCond %{HTTP_REFERER} *****.jp RewriteRule .* - [L] RewriteRule ^index01\.html /s/index02.html [R=302,L] RewriteRule ^index03\.html /s/index04.html [R=302,L] RewriteRule ^index05\.html /s/index06.html [R=302]