WordPress.org

Ready to get started?Download WordPress

Forums

Setting new domain name, files stay where they are (3 posts)

  1. dragonsjaw
    Member
    Posted 4 years ago #

    2.8.4

    I am getting ready to change the uri on my installation from
    ip#~username to the domain name http://www.realsite.org

    Are these steps accurate and in the right order?

    1. Back up everything, database, wp-config, htaccess, wp-contents
    2. Deactivate plugins
    3.Copy sql database
    --
    Then Login :
    I will change the name currently ip#~username to http://www.realsite.org this panel:

    2 Go to the Administration > Settings > General panel.
    3 In the box for WordPress address (URI): change the address to the new location of your main WordPress core files.
    4 In the box for Blog address (URI): change the address to the new location, which should match the WordPress address (URI).
    5 Click Update Options.
    6 (Do not try to open/view your blog now!)

    Take another dump of the database file?

    Would seem to me that I would have to point the new domain name after doing the above settings or nothing would show??

    Then:
    Do I need to remove the current .htaccess file? (I have permalinks set)
    Before pointing the new domain name?
    And before doing these steps?

    Or
    Do I do this after setting the uri in the setting panel, but before pointing the new domain name?

    - If you are using Permalinks then go to the Administration -> Settings -> Permalinks panel and update Permalink structure to your .htaccess file.

    Another question, if i set the address as :
    http://www.realsite.org, will WP use that address, or strip it to realsite.org?

    thanks for any clairification,
    this stuff makes me so nervous!

    ~bobbi

  2. sabinou
    Member
    Posted 4 years ago #

    I may be wrong, this is something I don't do on every weekend, but I have the impression it won't work the way you plan it.

    If your blog's database saved something like /127.0.0.1/username/blog/ as your blog's adress, after you transfer the blog files to your web host and after you copy the database, you won't be able to log in as admin, the blog will forcibly (without success, of course), try to load a dashboard located in the internal pages of (your webhost's URL)/username/blog/
    - obviously, it won't work.

    The way I did it twice :
    file copying. Wp-config. Database importing.
    And then a manual search and replace in your database, using phpmyadmin.
    Use this how-to : http://lorelle.wordpress.com/2005/12/01/search-and-replace-in-wordpress-mysql-database/
    In the Options table you'll first need to replace 127.0.0.1/user/blog (or whatever it is) with the new URL of your blog.
    Next, if your blog stores internal links inside the posts, also perform that search and replace operation in wp-posts.
    Search for the last occurences of your previous blog's URl, if any, and replace them.
    And you're done, you can log in as admin.

    I made it twice, and at least in my case, my way worked :)

    Good luck on your side !

  3. dragonsjaw
    Member
    Posted 4 years ago #

    Well to be clear..
    I am not moving anything.
    The Wp install is on the root of the #ip~username

    I had thought I may have to do a search and replace for ip#-username with in the sql file I will have saved for other hard coded links,
    But I didn't think this method would not allow me to login. ??

    As this

    You just need to change your wordpress and blog url in your dashboard settings.
    You start at step 2 and end on 7 in your case.
    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site

    1 Login to your blog.
    2 Go to the Administration > Settings > General panel.
    3 In the box for WordPress address (URI): change the address to the new location of your main WordPress core files.
    4 In the box for Blog address (URI): change the address to the new location, which should match the WordPress address (URI).
    5 Click Update Options.
    6 (Do not try to open/view your blog now!)
    -----

    is directly from the codex????

    And still I don't know if i set permalinks to dafault before I change the name or after or before pointing the new domain or after??
    Any more help would be apprecitated.

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic