Redirecting from www cname not working

Discussion in 'Web Design and Development' started by AnishaTiczon, Jun 16, 2012.

  1. AnishaTiczon macrumors newbie

    Jun 7, 2012
    Hi Webmaster experts,

    I have installed apache on my windows machine and trying to do a redirect from my site url to

    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.
  2. bpaluzzi macrumors 6502a


    Sep 2, 2010
    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?
  3. Mike-N-Tosh macrumors newbie

    Jun 21, 2012
    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 AND in the name server database.

    DOMAIN TTL IN SOA IP 14400 IN A the.ip.add.ress

Share This Page