WordPress.org

Ready to get started?Download WordPress

Forums

accessing wp-admin on temporary domain? (3 posts)

  1. dwest
    Member
    Posted 7 years ago #

    Hi,
    I use a hosting service that has an installation gizmo called Fantastico which allows the installation of many open source applications in my domain.
    I have installed WordPress 2.1 using it. The installation was done based on the assumption that the DNS for the domain was active. It isn't.

    I would like to develop the content (it's actually a website using wordpress pages) on the live server before pointing the DNS to the domain. This would allow the client to review the site as it progresses without it being "live".

    I can access the domain using the http://ipaddress~username and WordPress comes up, but with no theme (looks pretty weird that way). If I attempt to get into wp-admin by appending it to the temporary url, I am redirected to the registrar where the domain is located...obviously because the DNS has not been set.

    So, WordPress is using the live domain name in the construction of all the URL references. This we know.

    Is there a "feature" in Linux to take all URL's generated in the domain containing "domainname.com"/blah/blah and convert them to "ipaddress~username"/blah/blah?

    It seems that would facilitate working in WordPress in the temporary domain. Then, when the site is completed, just switch off the Linux feature, set the DNS to point to the server, and Linux then uses the URLS as supplied by WordPress (which would be constructed properly since WordPress was unaware of what was being done to it's URLs).

    Is any such "feature" available in Linux or PHP??

    Thanks!

  2. Ryan Boren
    WordPress Dev
    Posted 7 years ago #

    You can add the following line to your wp-config.php file:

    define('RELOCATE', true);

    With that defined, visit wp-login.php via ~username/blah... WP will reset the "siteurl" in the database and all links should use the new address. Remove the RELOCATE line from wp-config.php when you are done. To switch the siteurl back once you setup DNS, add the RELOCATE line back in and visit wp-login.php via the public URL. Remove RELOCATE again once you are done.

  3. Rogu1sh
    Member
    Posted 7 years ago #

    I am having a similar problem with the acception of being able to access anything.

    I have followed the things about changing the config-sample to congif.php uploaded it all, tried the http://blahblah/wp-admin/install.php and I get an error page.

    I have contacted 1&1 but have as yet had no reply (3 days now) but I think they don't like outside software being preferenced over their own really tacky and nasty stuff.

    Any help greatly appreciated

Topic Closed

This topic has been closed to new replies.

About this Topic