WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Accessing WP Install on New Server Before DNS Change (8 posts)

  1. PapaTeve
    Member
    Posted 2 years ago #

    We would like to move our static html website to a new server. In the process we would also like to change to WP. I have installed WP on the new server using Fantastico, and can access the login page using the format http://ipaddress/~username/wp-login.php but I then get a 404 error and the address bar reads http://mywebsite.com/wp-login.php.

    How can I access WP to edit without changing DNS? We need the static site to stay live until the new site is ready.

    BTW: Don't know if it matters but there is apparently no theme installed yet, just plain text on white background.

  2. s_ha_dum
    Member
    Posted 2 years ago #

    BTW: Don't know if it matters but there is apparently no theme installed yet, just plain text on white background.

    No. There is always a theme. What you've got is an error.

    I hate these installers. They do weird things.

    You should be able to install the site using the IP address and then use the IP address until you switch the DNS records, but I am guessing that Fantastico installed using your domain name and set up some kind of redirect, with isn't going to work.

    Where are your actual WordPress files? Are they in a directory called ~username ? There should be a file at http://ipaddress/.htaccess. What is in that .htaccess file? Also, what is your IP address? As soon as you switch the DNS records it will show up in a whois query or dig query so it isn't terribly sensitive information.

  3. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    I am quite sure if one can nav to an .htaccess file you really need both HUGELY better advise and a better host.

  4. s_ha_dum
    Member
    Posted 2 years ago #

    @Seacoast Web Design, why do you think that "one can nav to an .htaccess file"? We don't even have an IP for the site yet. There is no way to evaluate that.

  5. PapaTeve
    Member
    Posted 2 years ago #

    Hi Guys, thanks for your help. First off, I am using a shared server at HostGator so the IP address is http://gator758.hostgator.com/~nanacece

    WordPress files were intalled in the public_html folder under that.

    There is no .htaccess file visible either in the root or public_html. I will have to find out from HostGator if they even allow me to edit .htaccess. I have run into this in the past where the host is so freaked out about the possibility of someone screwing something up they don't allow access to .htaccess. I was planning on using it for redirects once things are up and running.

    I did find an article at http://kozacommunications.com/kc/2009/12/19/viewing-wordpress-site-before-dns-resolves/ that recommends changing the URL and home entries in the database which I have done and it worked. I was able to install the PageLines theme and add some content, so I should be able to get things to the point that we can go live.

    However, as I understand it, this will mean changing permalinks once I change DNS, something I'm not looking forward to. (If Update URLs works like it should it shouldn't be too bad.)

    So, would you suggest going forward from here and changing permalinks, or starting over with a manual install? Would the manual install have overcome the problem altogether? We only have a couple dozen pages at most, so I'm probably making a bigger deal about updating permalinks than it really is.

  6. PapaTeve
    Member
    Posted 2 years ago #

    Correction: I found .htaccess, I had forgotten to show hidden files. Contents are simply:

    # BEGIN WordPress
    # End WordPress

    Nothing more

  7. s_ha_dum
    Member
    Posted 2 years ago #

    However, as I understand it, this will mean changing permalinks once I change DNS, something I'm not looking forward to. (If Update URLs works like it should it shouldn't be too bad.)

    Velvet Blues Update URLs has worked very well for me in the past, and you have to change the URLs no matter what you do.

  8. PapaTeve
    Member
    Posted 2 years ago #

    OK, cool, then I'll just go forward as is.

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic