[英]href link is not working in subdomain folder
My subdomain is sample and consider my domain name is demodomain.I want to link 'www.google.com'. 我的子域是示例,考虑我的域名是demodomain。我想链接“ www.google.com”。 My href will link to ' http://www.sample.demodomain.com/www.google.com '.
我的href将链接到“ http://www.sample.demodomain.com/www.google.com ”。
html code:
<a target="_blank" href="www.google.com">click me</a>
I want to be redirected to www.google.com.but now I get redirected to http://www.sample.demodomain.com/www.google.com . 我想重定向到www.google.com。但是现在我重定向到http://www.sample.demodomain.com/www.google.com 。
将http://放在href网址之前
您需要将URL重定向到http://。
You have to add http://. 您必须添加http://。 If you don't the browser thinks that you want to link to an htmlpage or a file called "www.google.com" not the original website so here you are:
如果您不是浏览器,则认为您不是原始网站,而是要链接到htmlpage或名为“ www.google.com”的文件,因此您可以:
<a target="_blank" href="http://www.google.com">click me</a>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.