• Resolved sheldon.sc

    (@sheldonsc)


    I worked on a website and now want to upload it online. This is my first time working on wp. The database name was different on the localhost. I used database name ‘wordpress’. I am using someone else’s hosting service and they have given me a database name online which is different ‘xyz_wordpress’.
    I changed the params for the wp-config file according the the online database username and password. I exported my database from my local database and imported it to the online hosting database.
    Now my home page online opens up. But whenever I click on any of the menu links it takes me to the link http://127.0.0.1/wordpress/?page_id=67 and not the actual page. Its like it I lost all the links to the posts???!!!
    Am I missing out something?
    Any help will be greatly appreciated.
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    For info about moving wordpress check this codex page.
    At this point you haven’t changed the site address in the database so you need to access the database using a sql client (usually phpmyadmin) go to the *_options table and search for “siteurl” as option_name next to that at this point you will see 127.0.0.1 (this was set so you can access the site on your localhost) edit the option_value and set it as your domain name. This should do it.
    Regards

    if your localhost allows ZIP archiving, try to use the free “Duplicator” plugin. it works like a charm to me. it takes max 4-5Minutes to transfer a whole site to a new server

    if the localhost does not allow ZIP archiving, you have to enable it. i`m not sure how to do it, but check on google.

    Thread Starter sheldon.sc

    (@sheldonsc)

    Thanks I have updated the siteurl but the posts still are referring to the 127.0.0.1/wordpress/?page_id=67 🙁
    I have a home, about us, contact us and service page.
    The homepage since I am testing is ‘http://sitename/wordpress/
    The images don’t link either 🙁

    I will try the Duplicator plugin and see how things go.

    Thanks

    Thread Starter sheldon.sc

    (@sheldonsc)

    False alarm. Thanks jnhghy. I guess your suggestion worked (partly). 🙂
    I had to change one more setting. I logged into the admin and followed the instructions from the site you suggested for settings ‘On Your Existing Server’

    Go to the Administration > Settings > General panel.
    In the box for WordPress address (URI): change the address to the new location of your main WordPress core files.
    In the box for Site address (URL): change the address to the new location, which should match the WordPress (your public site) address (URI).
    Click Save Settings.

    Thank you for your help and quick reply 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘transfer website from localhost to web’ is closed to new replies.