Forum Moderators: phranque

Message Too Old, No Replies

Using a domain as test space

         

mikem1986

1:49 pm on Oct 13, 2009 (gmt 0)

10+ Year Member



I was just wondering whether it was worth buying a domain so i can use it to test websites on etc? Does anyone else do this and if so is there any pro's / con's i should be aware of?

Cheers

wyweb

1:53 pm on Oct 13, 2009 (gmt 0)



I've been doing that for years.

Pros: Live environment with no actual visitors to notice when you screw something up.

Cons: Can't really think of any off hand. Renewal fee every year?

phranque

8:56 pm on Oct 13, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you can always use a subdomain for testing, although it may be easier to host your test environment on a different server if the domain is different.
or you can set up all your test environments as subdomains of your "testing" domain.

LifeinAsia

9:23 pm on Oct 13, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Save money with another trick- just setup a dummy domain in your hosts file and point it to your server's IP address. On your server, setup a virtual host just like you would do for a real domain.

Example, if you have example.com on IP a.b.c.d add the following line to your hosts file:
a.b.c.d example.org

Setup example.org on your server just like you would for a "real" domain.

You should be good to go.

The downside is that you can only do testing from your own computer (unless you make similar changes to the hosts file on other computers). If you're going to have multiple people testing, it probably makes sense to just buy another domain.

mikem1986

2:06 pm on Oct 23, 2009 (gmt 0)

10+ Year Member



yeah, i just bought the new domain! thanks guys

dreamcatcher

9:25 am on Oct 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not set up a server offline? Much more convenient option which speeds up development. Try Wamp or Xampp.

dc