Question about creating a new site using Wordpress on a domain currently in use

Soldato
Joined
8 Nov 2006
Posts
7,073
Location
Ireland/Northern Ireland Border
I am putting together a new website for someone. They currently have an existing website in place but it is well past a need for change.

I am happy enough desiging a website using Wordpress. I am not a professional web designer (I am doing this for free) and I have a small question.

How do I go about designing the wordpress site without it replacing the current live website. Once it is complete, how do I then move the site to replace the old site?
 
Soldato
Joined
28 Oct 2006
Posts
12,456
Location
Sufferlandria
Either:
1- build it on another domain and use a clone or move plugin when it's time to go live
2- build it on your local machine with the domain in your hosts file to point to localhost so you can build the site with all the correct domain details already in place and make a direct copy of the files+database to the Web server.
 
Soldato
Joined
19 Jul 2009
Posts
7,243
Create some subdomains. When I do this kind of thing I usually create three. alpha, beta and old. Alpha to develop on, beta to show the client and old to put the old site on before putting the new site live.
 
Permabanned
Joined
10 Feb 2011
Posts
151
As suggested by touch , I will also recommend to go with second option
-----------------------------------------
build it on your local machine with the domain in your hosts file to point to localhost so you can build the site with all the correct domain details already in place and make a direct copy of the files+database to the Web server.

--------------------------------------------

In this you need not change anything on the site when you update it on live server.
 
Caporegime
Joined
28 Jan 2003
Posts
39,881
Location
England
Do what touch says.

You do not want to have to go through the headache that is shifting a wordpress install to another location.

There are tools available to help you if that's the path you've gone down, but if it's not been started do it that way.
 
Soldato
Joined
28 Oct 2006
Posts
12,456
Location
Sufferlandria
Looks like it works pretty much the same as windows:
1- Find the hosts file (/private/etc/hosts)
2- Copy to desktop
3- Open in editor, add line at the end "127.0.0.1 www.example.com" where example is the name of your domain
4- Copy back to original directory, overwrite existing file

Test it by going to the domain in your browser. It should now direct you to your own laptop rather than the webserver for that site. You'll probably see some kind of error message as you wont have any webserver running on your laptop yet.
 
Soldato
OP
Joined
8 Nov 2006
Posts
7,073
Location
Ireland/Northern Ireland Border
I can handle the hosts side of things.

I just need to now figure out the following

1. How to setup a local web server. I think OS X includes one.
2. How to setup a local SQL server.

With that in mind, will setting up on a subdomain and then migrating the wordpress installation later be less troublesome?
 
Soldato
Joined
28 Oct 2006
Posts
12,456
Location
Sufferlandria
Have a look at MAMP. It installs everything you need for a webserver.
setting it up locally might involve a bit more work up front but developing locally is a little easier when going live.
Really, there isn't much difference between options (Although, some housing packages only include 1 database). It's not too difficult to configure a mamp server and it's not too difficult to go into the database admin and change the urls if you develop on a different address.
 
Back
Top Bottom