Support » Fixing WordPress » Change domain in wordpress insstallation

  • Hi there,

    I have my wordpress installation running under the domain “”. The installation is in the root. So the firt page – the landing page – is
    The further sites are named (for example) as I defined that in the wordpress installation.

    Now I want to have the landing page on
    What do I need to do?

    – Reinstallation the wordpress?
    – Can I configure my files index.html or the config.php file?

    What needs to be done? Actually I do not want to re-install wordpress, but maybe this is needed :-//


Viewing 5 replies - 1 through 5 (of 5 total)
  • Fist thing I’d do is make point to the same server directory as (I’d do this in cPanel, your web host might use something different.) Now both and should both go to the same WordPress installation.

    Then I’d change the URLs in the WordPress admin General Settings page so that links generated by WordPress use the new domain.

    Finally, I’d make permanently redirect to, perhaps with a message to users to tell them about the change.

    I haven’t tested these steps, though.


    now it’s getting a little clearer, although the problem stays the same. Both domains ( and are directing to the root of my server. So when I enter the page there is the landingpage with the domain If I hit the site through then there is the landing page with the domain herrbutzfotografiert.
    I all seems quite ok, but when entering it should be redirected to http://www.herrbutzfotografiert.
    How can I do this and is this all possible when both domains point to the root of the server? Do I need to create a folder and have there a wordpress installation running?

    Thanks for your help – really appreciated!!
    BR Marco

    For a simple redirect, I’d use my web host’s cPanel to redirect the domain.

    For a redirect with a message to the user, I’d point the domain at some other directory, but it doesn’t need WordPress, just an index.html file with a timed redirect in it (a <META http-equiv="refresh"... tag in the header). You could use index.php instead, as another way to do a simple redirect.

    Links like, either in users’ bookmarks or in other sites, may be a problem. A .htaccess file could direct them all to index.html, but I don’t know exactly how to do that.

    Hi Rod,

    thanks, but that is exakly the problem I have: BOTH domains direkt to the root folder. Means: and go to the same wordpress installation.

    If i would have an installation in a subfolder and redirect both domains to the subfolder, that i wouldnt be a problem. but having both domain pointing to the root, I have:

    And actually I would like to have just the second domain. In my webhosts c-panel I only can redirect a domain to a subfolder….

    Hope I explained the problem so you can understand.

    Maybe it’s because is the main domain and is an addon? If that’s causing the difficulty, your hosting provider could swap them to allow you to redirect

    Alternatively, I’m sure there’s a solution using an .htaccess file. As I said before I don’t know enough to supply any details, but I found this example.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change domain in wordpress insstallation’ is closed to new replies.