Redirecting from www cname not working

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

  1. AnishaTiczon macrumors newbie

    Joined:
    Jun 7, 2012
    #1
    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.
     
  2. bpaluzzi macrumors 6502a

    bpaluzzi

    Joined:
    Sep 2, 2010
    Location:
    London
    #2
    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

    Joined:
    Jun 21, 2012
    #3
    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
     

Share This Page