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.

Keeps redirecting to my main url when using sharedip/~username to preview the site

Discussion in 'General Discussion' started by brookelustig, Apr 25, 2014.

  1. brookelustig

    brookelustig Registered

    Joined:
    Apr 25, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I'm moving a wordpress site to a new host and when using the cpanel temporary url sharedip/~username it keeps redirecting me to my domain url and show the site hosted at my old host. I have looked over Apache mod_userdir Tweak and thy are unchecked. I haven't updated the nameservers yet since i wanted to make sure the site is functioning well before doing that.

    Any advice on how to fix this?

    Thanks,

    Brooke
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Sites that use mod_rewrite and other directives in their .htaccess files will not work as expected when viewed through mod_userdir URLs. You can actually modify the hosts file on your personal computer if you want to see the website in it's existing state before the DNS is updated. The hosts file is documented here

    hosts (file) - Wikipedia, the free encyclopedia

    Thank you.
     
  3. brookelustig

    brookelustig Registered

    Joined:
    Apr 25, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Worked great, thanks Michael!
     
Loading...

Share This Page