Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Mapping domain names to localhost
I am developing a site. For testing it locally, I installed Apache.
I have mapped my domain name (say www.example.com) in the C:WINDOWSsystem32driversetc directory to 127.0.0.1, so that I can perform testing locally.
There are site sub-domains for which I obviously will have to use the hostname & therefore perform a host mapping on the local host. Now I want to map the sub-domains to sub-directories of the root localhost folder (like we do for A or CNAME records).
Can I do that, becuase with this appraoch I can test my site completely locally, and then upload it without any changes to the link destinations?
0 · ·