• I currently have a wordpress site with one domain (mysite.co.uk). Both the domain and the hosting are on the same provider.

    I have just registered another domain name (mysite.com) which is on a different provider. Currently this domain is on a redirect to the .co.uk address.

    I want mysite.com to be the primary domain with the .co.uk address redirecting to it. How would I go about setting this up?

    Also, say I have set it up and someone visits mysite.co.uk/some_page will they be redirected to mysite.com/some_page? Or will it just go to mysite.com?

    Finally, I also have google apps set up for the .co.uk address. I want my email to use the .com domain as primary (sender) address but still have email addressed to mysite.co.uk delivered.

    Sorry about all the questions but hopefully someone can help. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • When moving domain names, if you have hosting for both, use .htaccess on the old domain to redirect to a new domain using a 301 redirect. I am no expert at the htaccess stuff so here is an article that I come back to when I have this problem.

    https://enarion.net/web/htaccess/migrate-domains/

    As far as moving the site url the codex can answer that. https://codex.www.ads-software.com/Changing_The_Site_URL

    A word of advice when you change the url in the site settings it can be difficult to get back and change them to the proper one. I have ended up editing the database to correct it.

    Using the wp-config.php or the functions.php method works and if you have access via ftp is great. I use these methods until I am sure everything is working then I remove them and update the settings in the database.

    Also I have a Gmail account that my host redirects all the email I receive to my .com email address to my gmail. There are setting in gmail that will let any email you send out have the from [email protected] instead of your gmail address.

    I hope this helps.

    Thread Starter miocene22

    (@miocene22)

    OK so I’ve posted a ticket with my web hosting provider (where mysite.co.uk domain is also kept). They say only domains registered with them can be used with their hosting. So looks like I’ll have to transfer the mysite.com, then point it to my hosting, edit my wordpress settings, then set up a 301 redirect on the .co.uk address.

    As for google apps, although you can add alias domains to your apps account, there is no way to change your primary address. Looks like I’ll have to set up a new Google Apps acount with the .com, then delete my old account and add the .co.uk as a domain alias.

    Looks like a lot of work and a bit of a pain.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple domains, 1 wordpress site’ is closed to new replies.