The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirecting Domain to cPanel user on new WHM

Discussion in 'General Discussion' started by Harlequin, Dec 24, 2011.

  1. Harlequin

    Harlequin Member

    Joined:
    Sep 4, 2011
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Santa Cruz de Tenerife, Spain
    cPanel Access Level:
    Reseller Owner
    Hi

    I've recently moved a number of domains to a new host, well over a week ago now. However, some of my customers are complaining that from some locations they are still seeing the old website.

    I've checked the DNS for each and they appear to be OK so I can only assume it's down to their ISP.

    One way I was thinking I might get round this was to login to the old WHM accounts and edit the index.php file to redirect to the new site using the IP address. Something like "000.000.000.000/~user" but It's been so long since I've done anything like that I wanted to ask here if there was a better solution...
     
  2. Brian

    Brian Well-Known Member

    Joined:
    Dec 1, 2010
    Messages:
    117
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    You certainly could redirect to the IP URL of the "new" server, just like you're suggesting. However, remember that accesses to IP URLs are unable to have their bandwidth attributed to the site owner. So, all traffic you redirect in that fashion would essentially be unmetered bandwidth.

    If that's not a concern for you, then there's not necessarily a direct problem with using that redirect. However, also be aware that some scripts/sites are not designed to be called from a different directory structure like that. Some sites *will* break and refuse to load because you're loading it from "/~username/" instead of "/".

    If this is a problem that's gone on for over a week like you say, though, I'd be hesitant to advise such a bandaid fix like a redirect. You should continue to encourage the affected users to resolve the DNS caching problem with their network equipment and/or contact their ISP as necessary.
     
  3. Harlequin

    Harlequin Member

    Joined:
    Sep 4, 2011
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Santa Cruz de Tenerife, Spain
    cPanel Access Level:
    Reseller Owner
    Thanks for the response. I thought I could do it. However, when I use "http://184.107.169.90/~username/" it changes to "http://www.184.107.169.90/~username/".

    It may be becaus ethe sites are running a URL SEF component as they are all Joomla sites now.

    I agree with the band aid idea. However, we're dealing with a 3rd world ISP in a 1st world economy here and if I called tech support I doubt they'd know what a DNS server is. It's that brutal.
     
  4. Brian

    Brian Well-Known Member

    Joined:
    Dec 1, 2010
    Messages:
    117
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Sounds like you have .htaccess mod_rewrite rules or otherwise setup on the new box that's force rewriting all URLs to prefix with www.

    You'd need to identify what's doing that and turn it off or adapt an exception to allow an IP URL. Since it could be any amounts of possible causes (.htaccess rewite, Joomla plugin, etc.) I really wouldn't have a solid recommendation to start with. But, it would be something like that.
     
  5. Harlequin

    Harlequin Member

    Joined:
    Sep 4, 2011
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Santa Cruz de Tenerife, Spain
    cPanel Access Level:
    Reseller Owner
    I was thinking the same thing. I'll have a look at the htaccess file later.

    Thanks for the info and the pointers...
     
Loading...

Share This Page