WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Converting Localhost to Remote domain (6 posts)

  1. creativecomponent
    Member
    Posted 5 years ago #

    I've successfully developed a local WP site, running xampplite, and I love the ease of use.

    I've worked through a tutorial "Convert A Local WordPress XAMPP Installation Into A Live Site" found here. -- An EXCELLENT tutorial.

    However, the problem I'm having is -- every asset on my local server is referenced as 'localhost'. All assets are showing-up correctly, only because I have the same local server running {Hilarious, actually}.

    I changed the two option_name values of 'siteurl' and 'home' to the correct remote url.

    I'm assuming EVRYTHING in my database is referencing localhost. Is there a way to fix this?

    Thanks!

  2. Austin Matzko
    Member
    Posted 5 years ago #

    Probably the only place it really matters is the post_content field of the wp_posts table. You can do a search and replace like so, assuming http://localhost/test/directory/ is the old directory and http://mysite.com/real/directory/ is the new, live directory:

    Of course, you should back up your database before doing anything like this:

    UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://localhost/test/directory/', 'http://mysite.com/real/directory/');

  3. creativecomponent
    Member
    Posted 5 years ago #

    Cool. I'll give this a try.

    I've transferred everything from local to a remote dev server, and I've gone-through and edited everything by hand, but once this needs to go to production, I'll need to do it all over again. A batch process seems like the better way, methinks.

    Thank you!

  4. creativecomponent
    Member
    Posted 5 years ago #

    Worked like a champ! Thanks again!

  5. hozefasmile2007
    Member
    Posted 4 years ago #

    Hi,
    I have installed xampp server in my winxp sp2 system. directory used is d:/xampp
    I have also installed wordpress in htdocs of the xampp and put all the wordpress files in a folder “blog”. I had made an index.html file of my own in htdocs folder and made a link there for my wordpress blog. I also removed the default index.php file that is present in htdocs directory(xampp introduction page).

    It works perfectly on my local machine. when i type localhost in my browser, the index.html file created by me appears and when i click on go to my blog link then the wordpress blog page also open well.

    The problem is that when I try to open my wordpress blog globally(means through internet from some other pc). it doesn’t open.My domain name is hozefa.blogsite.org that I am hosting from my own pc. when I type my domain name in the browser the first index.html file opens but when I click on go to my blog link, it doesn’t work. An 403 Error message appear. what is the problem? How we can solve this problem? Please help me!

  6. chadrockman
    Member
    Posted 4 years ago #

    I followed everything in the link perfectly however, even though the main index.php shows up, none of my pages work. Instead, an "Internal Server Error" occurs for all of them. What could I be missing?? Thanks!

    I did notice that I do not have a wp_posts table.

Topic Closed

This topic has been closed to new replies.

About this Topic