I included some external links in my website, but when i click on those links it opens a linkwith my domain/+link.

August 18, 2016 368 views
DNS Ubuntu 16.04

I don´t know if it is something i have to do with the DNS

I included the dot after the domain in the CNAME Ex www domain.com. in order for that no to happen. But the thing is that is an external link, but it keeps carrying my domain in a new window.

Example of error when i open the link www.domain.com/www.google.com
the link in the code for the new window is just www.google.com.

Thank you

1 Answer

Hey there!

Usually, when you don't specify any protocol (like HTTP or FTP) while specifying the link, it is assumed that you are linking to a file within the current directory or to a route in your application.

Try adding http at the beginning of the link in your source code. Example - instead of just linking to www.google.com, link it to http://www.google.com.

That should hopefully solve your problem!

Have another answer? Share your knowledge.