• 0

How can I use another URL (domain name) for my entire DMS Website?

Question

Posted · Report post

Hi to all,

 

Some help on the below would be appreciated as it's proving to be a little more complex than I originally suspected:

 

I have almost finished a site which I set up on my own hosting plan (from reg123). The site is called 'www.jawdesigns.co.uk/raceware'

 

I've now almost completed the site but I want to use a different URL address (domain name) for the entire website without having to move any wordpress files. The URL I would like to use is another domain name which I've transferred across to my reg123 hosting plan called 'www.racewaredirect.com'.

 

What's the easiest way I can do this so that I'm using the url address 'www.racewaredirect.com' instead of 'www.jawdesigns.co.uk' which is the current URL address of my website at present.

 

Any help, advice, links to tutorials etc would be appreciated.

 

Thanks, James

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

Posted · Report post

 I have done this quite a few times when a site needs to have a URL change and the simplest way is to follow these instructions by adding the new URL to the functions.php file http://codex.wordpress.org/Changing_The_Site_URL

 

You will need ftp access to get to the file. Note that as soon as this happens it kicks you out of the site and you have to log in again. Make sure you update the permalinks.

 

Of course you need to direct the URL to the correct root folder, it depends how the host works. It could be different for a cloud host.

 

No liability accepted but it's worked plenty of times!

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi,

 

Thanks very much for the help with this and glad to hear it's possible. I'm still a little stuck so forgive me for asking further questions. Just to make sure should I do the following:

 

1) Because my current (temp) url is: www.jawdesigns.co.uk/raceware and I need to change it to: www.racewaredirect.com I'll add the following PHP to my child themes functions.php file:

 

update_option('siteurl','www.racewaredirect.com');

update_option('home','www.racewaredirect.com');

 

2) Update the Permalinks (how and where do I do this please?)

 

3) Direct the URL to the correct root folder (how and where do I do this please?)

 

Once again apologies for asking for additional information on the above. Also, I previously built an old version of the website on 'www.racewaredirect.com' (many months ago) but since then I've re-built it again using DMS on 'jawdesigns.co.uk/raceware'. When I added the above php code into the functions.php file it logged me out and re-directed me to my old website (wp login) created ages ago on 'www.racewaredirect.com'. Obviously I've gone wrong somewhere and I know this is a little confusing (for me anyway). Also, I no longer need the older website built on 'www.racewaredirect.com' (using old tools from the pagelines framework). The new DMS site I've recently created has been built on 'www.jawdesigns.co.uk/raceware'.

 

Thanks again and apologies if any of the above isn't clear?

 

Cheers, James

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Here are the answers on #2 & #3:

 

1) The best way to do this is in phpMyAdmin.  Go into wp_options for the appropriate database (typical default is myurl_wrdp1) and change line 1 and 36 (on most installs).  These are siteurl and home... so you can skip doing that in the functions.php file as you mentioned above.

 

2) If you've hand coded any links, whether in CSS, HTML, JS, etc. you'll need to modify them. (i.e. <img src="http://oldsite.com/img.jpg"/> should be changed to <img src="http://newsite.com/img.jpg"/>) Make sure to do this everywhere... navigation, image, hotlinks, etc.

3) where is your domain registrar? I use Godaddy. Go there and update the A record to point to the hosting account you've installed your WP/DMS into.  Then, you'll need to do add-on domains in your hosting account.  Where that is done will vary with your hosting package.  Do you have a shared, VPS, dedicated?  WHM, cPanel, Ksplice, Virtuozzo?

 

You should do step #3, then #1, then #2. 

 

Let us know your server setup so we can help you further.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks a lot tsalstrand,

 

I appreciate your help with this so thanks very much! I'm registered with reg123 (this is where I have both of my domain names at present) which I brought a few months ago (their professional plan). Unfortunately I'm not too sure if I have Shared, VPS, Dedicated, WHM, cPanel, Ksplice or Virtuozzo because I've not spent much time looking into the options available on reg123 yet. Is there an easy way that I can get you this information from my 123reg account. I would ask their support (live chat) but there not available now until Monday morning.

 

I'll also have a detailed look though my 123reg server settings tomorrow as this is an area I haven't touched much but clearly need to!

 

Cheers, James

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi James,

I'm based in Twickenham and I've built a number of DMS sites (and changed the url/domains on several of them including 123-reg domains). I'd be glad to assist you (FOC of course!), - please feel free to phone me on Monday if you still need help.

Jeremy

020 8894 3053 or 07985 080896 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Jeremy,

 

Thanks very much for your kind offer to help me! I'm going to crack on with this tomorrow but if I have any problems I'll certainly give you a call. Once again thanks very much for your offer to help me with this.

 

All the very best, James

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now