WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Redirecting to m.altalanadi.tld

Mannuel

New member

0

0%

Status

Offline

Posts

33

Likes

0

Rep

0

Bits

175

3

Months of Service

0%
Hello, I want to redirect my site to mobile devices as m.altalanadi.tld in Wordpress using the following htaccess code:

```apache
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile" [NC]
RewriteCond %{HTTP_USER_AGENT} "iphone|ipod|opera mobile|palmos|webos|acs" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "alca|amoi|audi|aste|avan|benq|bird|blac" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "cmd-|dang|doco|eric|hipt|inno|ipaq|wapp" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "keji|leno|lg-c|lg-d|lg-g|lge-|maui|wapi" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "mmef|mobi|mot-|moto|mwbp|nec-|newt|wapa" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "pana|pant|pdxg|phil|play|pluc|port|qwap" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "sage|sams|sany|sch-|sec-|send|seri|qtek" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "siem|smal|smar|sony|sph-|symb|t-mo|wapr" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "alav|cell|cldcblaz|brew|java|jigswebc" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "maxo|midp|mits|noki|opwv|palm|proxwinw" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "sgh-|shar|sie-|teli|tim-|tosh|kddiwinw" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "upg1|upsi|vk-v|voda|w3cs|wap-xda|up.link" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "windowssce|iemobile|mini|mmpsymbian" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "midp|tsm-|wap|phone|pocket|mobile|pda|psp" [NC]
RewriteRule ^$ http://m.altalanadi.tld/ [L,R=302]

RewriteCond %{HTTP_HOST} ^www.m.altalanadi.tld$
RewriteRule ^robots\.txt$ robots.txt

RewriteCond %{HTTP_HOST} ^m.altalanadi.tld$
RewriteRule ^robots\.txt$ robots.txt
```

The subdomain has been created, and the subdomain works on desktop, but I am getting an ERR_TOO_MANY_REDIRECTS error on mobile. How can I resolve this issue?
 

249

6,622

6,642

Top