Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AnishaTiczon

macrumors newbie
Original poster
Jun 7, 2012
1
0
Hi Webmaster experts,

I have installed apache on my windows machine and trying to do a redirect from my site url http://www.fromdev.com to http://fromdev.com.

We are trying to do this for mobile devices and want to read the type of device accessing it. However this keeps failing and we are not sure how to debug this. I am new to apache so please feel free to point me to a beginners tutorial or reference site. I have tried some google search however the information is overwhelming.

Please feel free to move this thread to right location just in case I have posted this in the wrong place. Thanks in advance.
 
Hi Webmaster experts,

I have installed apache on my windows machine and trying to do a redirect from my site url http://www.fromdev.com to http://fromdev.com.

We are trying to do this for mobile devices and want to read the type of device accessing it. However this keeps failing and we are not sure how to debug this. I am new to apache so please feel free to point me to a beginners tutorial or reference site. I have tried some google search however the information is overwhelming.

Please feel free to move this thread to right location just in case I have posted this in the wrong place. Thanks in advance.

Do you only want the redirect to happen when the user is on mobile? Also, do you have access to the vhost configuration on the server, or do you just have access via .htaccess files?
 
Might be helpful if you included the information as to WHAT is failing. Do you get an error? A blank page? What do the logs say?

Normally, you wouldn't do something like that for a device especially as that information can be spoofed, blocked from sending etc..

Normally for your domain name, you register both the domainname.com AND www.domainname.com in the name server database.

DOMAIN TTL IN SOA IP
domainname.com 14400 IN A the.ip.add.ress
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.