I just want to setup a local server on my pc. I have WAMP installed. Now, for test, I wrote www.google.com www.google.temp in hosts file, in location C:\WINDOWS\system32\drivers\etc. But, when I am loading www.google.temp, it's not loading anything. Actually, I want to make my folder C:/wamp/www/test to load like, www.test.loc
|
You want to set up the hosts file like this: (Note: wildcards are not supported)
You will not be able to visit google.com anymore, so I recommend something like this:
These are only accessible from your local system. To be public, you have to purchase the domain name. I'm not quite sure what you did here: EDIT: Add this to a .htaccess for those redirects.
|
|||||||||
|
|
You're looking in the wrong place. I'd recommend reading up on some stuff:
Once all the concepts are clear in your mind you should find it simple to do what you want. The key points are.
|
||||
|
|