joined:Jan 18, 2010
I was wondering if the following is possible.
I have a website http://www.example.com
And I have a test site http:
A lot of my scripts and solution use a absolute URL.
So for instance a lot (basically all) links on my site point towards http://www.example.com
This makes testing a annoying if not difficult task.
Both sites are running on the same IP
The test domain is a subdomain
The test site is installed in a folder called "test" which is in the public_html folder of the www (live) domain.
In the future we are looking into creating a "proper" development environment, but for now this will have to do.
Is there a way to "trick" my PC (using for instance the host file) to think that http://www.example.com is actually http:
//test.example.com? So I can test on my subdomain without having to change a lot of code etc to make it all work?
[edited by: phranque at 1:12 pm (utc) on Jun 3, 2010]
[edit reason] unlinked example.com subdomain [/edit]