Mobile re-direct – godaddy to dudamobile – not working
-
Hi,
I need some help as I am unable to direct mobile users to the dudamobile site. I am hosting on Godaddy and using WordPress 2012 – child theme. Both Godaddy and dudamobile support have not been too helpful in resolving this.
My desktop website is https://www.example.com
My mobile webpage is https://mobile.dudamobile.com/site/exampleI have set up 2 CNAME records as follows>
m pointing to mobile.dudamobile.com
mobile pointing to mobile.dudamobile.comI have added the below javascript to header.php file below <head> as instructed by dudamobile:
<script src=”https://static.dudamobile.com/DM_redirect.js” type=”text/javascript”></script>
<script type=”text/javascript”>DM_redirect(“https://mobile.dudamobile.com/site/example”);</script>However whenever I enter https://www.example.com from mobile device, browser searches for mobile.example.com, instead of going to dudamobile. As per dudamobile support, something on the server side is directing to mobile.example.com.
I did find the below script in .htaaccess file – which I have deleted.
##BEGIN MOBILE (do not edit below this line)
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ((.*iPhone.*)|(.*iPod.*)|(.*BlackBerry.*)|(.*Android.*Mobile.*)|(.*Windows\ CE.*)|(.*IEMobile.*)|(.*Opera\ Mini.*)|(.*Opera\ Mobi.*))
RewriteCond %{HTTP_COOKIE} !dm_show_classic
RewriteCond %{QUERY_STRING} !no_redirect=true [NC]
RewriteCond %{HTTP_HOST} ^www\. [NC,OR]
RewriteCond %{HTTP_HOST} ^[0-9a-z-]+\.[a-z]+$ [NC]
RewriteCond %{REQUEST_URI} ^/_dm/s/ [NC,OR]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif|png|css|js|txt|ico|pdf|bmp|tif|mp3|wav|wma|asf|mp4|flv|mpg|avi|csv|doc|docx|xls|xlsx|ppt|pptx|zip|rar|tar|gz|dmg|iso)$ [NC]
RewriteBase /
RewriteRule ^(.*)$ https://mobile.example.com/ [R,L]
##END MOBILEInspite of deleting this, https://www.example.com entry in mobile device continues to point to mobile.example.com instead of https://mobile.dudamobile.com/site/example
Cant understand what else could be there which is causing this wrong pointer. Have deleted any mobile redirect WP plugins as well.
- The topic ‘Mobile re-direct – godaddy to dudamobile – not working’ is closed to new replies.