Reputation: 329
I have my PHP localhost project in folder named myproject in XAMPP localhost directory. Inside this project I need to use some hyperlinks, for example:
<a href="/">Home</a>
if I am on:
On production server this get me to the root of project (home), but on localhost I get:
instead of
How can I do this? I guess it will be something with .htaccess file. Thank you for advice
Upvotes: 0
Views: 1071
Reputation: 612
Search in your httpd.conf
xampp
and replace by myproject
and restart your web server :
DocumentRoot "C:/.../xampp/.."
and <Directory "C:/..../xampp/../"> ...
Upvotes: 1