Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to link to external sites in xampp

i am using Xampp and when i am trying access any online website using this code

<a href="www.xyz.com">Click</a>

it shows this in the url field

localhost/www.xyz.com

how to link to www.xyz.com directly ...

i also tried to use

<base href="">

but it doesn't seen to work .

i also tried using javascript and php redirects , but still i am getting the same error

like image 645
user2455483 Avatar asked Sep 01 '25 02:09

user2455483


1 Answers

Try typing http://www.mysite.com. If you don't use http://, it thinks you're referring to a local domain (under localhost)

like image 64
jdepypere Avatar answered Sep 02 '25 16:09

jdepypere