I use the Xampp installation to test my files locally before I upload them to my web server. My web pages usually contain a lot of hardcoded links, which means testing any links (or any forms, etc.). I need to change the hard link to point to localhost, and then replace it after I have finished testing.
I am looking for a way to redirect an external url to point to my localhost folder, so I could set it as my site, and then I could make changes before uploading them. For example, if I went to "www.mysite.com/example/view.php" in my browser, I would really look at "localhost / example / view.php".
Is it possible?
source
share