• Hello hello…

    I’m running a huge WP portal with tons of articles and images on an old domain (let’s call it olddomain.com) and the owners want to rename the site but keep the current domain active. The thing is – all URLs should display the new domain.

    Now, my question is… since the addon domain does nothing except open the same web hosting,

    • can I just put newdomain.com into WP options for URL and make it work
    • when someone follows an old link (olddomain.com/about-us for example) – will it get redirected to a newdomain.com 404 error or the exact same page on a new domain?
    • is there anything else I need to change? htaccess files? webhosting options?
Viewing 1 replies (of 1 total)
  • Hi there ??

    Ok, so the first thing you need to do is setup an addon domain on your hosting account. Normally they use cPanel. It’s pretty easy to do it -> login and go to the Addon domain tool.

    Once you have that setup transferring your WordPress application includes copying your files and database and modifying the wp-config.php file in your main WordPress folder.

    In wp-config.php you should change the MySQL settings:

    DB_NAME – here you should enter the name of the WordPress database, e.g. :

    define(‘DB_NAME’, ‘user_wrdp1’);

    DB_USER – here you should enter the username with privileges to access the blog database, e.g. :

    define(‘DB_USER’, ‘user_wrdp1’);

    DB_PASSWORD – the password for accessing the database:

    define(‘DB_PASSWORD’, ‘password’);

    DB_HOST – the MySQL host; in most cases you won’t have to change this:

    define(‘DB_HOST’, ‘localhost’);

    In case you wish to use the transferred application with another domain, or in another folder, you should also change the siteurl and home options in your WordPress database. You can do this using the phpMyAdmin tool available in your cPanel.

    Once in phpMyAdmin, select your WordPress database and browse the table wp_options. Find the options siteurl and home and change their values to the desired URL.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Switch WP to an addon domain’ is closed to new replies.