Problem with href links

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
souliel
Forum Newbie
Posts: 1
Joined: Mon Apr 02, 2012 10:54 pm

Problem with href links

Post by souliel »

Hello guys!

I just started setting up XAMPP locally on someone's MAC OSX. I got a problem everytime I assign links like <a href="include/widget.php">open widget</a>. It automatically adds a domain name and the link is no longer "inlcude/widget.php" as what I put on the href property. When I clicked it, it redirects me to "http://domain_name/include/widget.php" and the problem is I haven't uploaded that file yet so it displays an error page.

Can anyone please help me how to remove this auto add domain name please. What should I disable or where to go.

Any help would be appreciated.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Problem with href links

Post by califdon »

You probably need to begin your URL with "localhost/".
Post Reply