Results 1 to 3 of 3
  1. #1
    TravG's Avatar
    TravG is offline Private Member
    Join Date
    September 2008
    Posts
    2,069
    Thanks
    34
    Thanked 179 Times in 131 Posts

    Default Redirect Subdomain - How To?

    How do I redirect a subdomain that I no longer use to my main website? I had a mobile site m.mobilecasinolisting.com before I made the main website (www.mobilecasinolisting.com) mobile responsive. Now in GWT I get all the errors because I discontinued the m.site. The m. website was a separate hosting plan I bought to use their mobile website builder. I no longer have access to that portion of the website since I cancelled it.

    I tried to just redirect it from my htaccess file but that did not work.

    Thanks
    Live Casino USA - the best USA live online casinos. Play USA online slots and other casino games like USA online blackjack. Play at USA online casinos and find the best USA online casino. Want to play USA online poker? Find the best poker sites at 4DeucesPoker.com.

  2. #2
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    32,543
    Thanks
    3,944
    Thanked 8,813 Times in 5,630 Posts

    Default

    Some hosts allow you to perform the redirect in the cpanel application, but you should also be able to do so in the htaccess file.

    I'd be happy to help you try and figure out the syntax for this as it should not be difficult. However, the server needs to answer on the m. site and then the redirect handles the traffic AFTER the server answers. If the server does NOT answer on that sub-domain, the traffic can not be redirected.

    If the redirect is handled in the cpanel (or IIS host header) it IS actually answering on the subdomain, but then the redirect goes into effect.

    Rick
    Universal4

    I am currently traveling up north, but will load up skype in a little while if you want to discuss it, my business line doesn't work real well in the mountains, but if you call leave a message and I will contact you back, or drop me a pm or note in skype.

  3. #3
    Christiaan's Avatar
    Christiaan is offline Private Member
    Join Date
    February 2013
    Location
    Barcelona
    Posts
    1,281
    Thanks
    182
    Thanked 486 Times in 336 Posts

    Default

    You can find a good explanation on how to redirect domains with htaccess here: http://enarion.net/web/htaccess/migrate-domains/

    As Rick already said you will need access to that subdomain on your server. The rules from the article above should be in the htaccess file for the old subdomain, not your main domain.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •