windows - how to redirect example.com to 127.0.0.0/main/test? -


i'm using wamp 5, windows xp. have edited host file in local disk code below , works

127.0.0.0 example.com

but i'd redirect particular folder, if change code below, dont work

127.0.0.0/main/site example.com

how redirect example.com 127.0.0.0/main/site locally in pc?

btw, dont want install new software solve prob

you need create virtual hosts

leave host file 127.0.0.1 example.com

when define virtual host tell folder documentroot send right place when use address example.com in browser.

check out wampserver.com


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -