WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Mobile homepage redirection

LexityJ

New member

0

0%

Status

Offline

Posts

29

Likes

0

Rep

0

Bits

155

4

Months of Service

0%
I want to redirect mobile visitors to the mobile homepage of a WordPress-based site. I am using the following code: I have two issues: 1- Should I redirect with a 301, 302, or 307 redirect? 2- Google penalizes my site for a 1.5-second redirection delay in speed tests. How can I avoid this? # BEGIN Mobile redirect RewriteEngine on RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] RewriteCond %{HTTP_HOST} sitename\.com [NC] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*)$ https://www.sitename/mobil [L,R=302] # END Mobile redirect
 

249

6,622

6,642

Top