【发布时间】:2014-03-14 15:05:06
【问题描述】:
我的网页上有外部链接:
<a target="_blank" rel="nofollow" href=<?php echo $r['url'] ;?>>
VISIT STORE
</a>
当 $r['url'] 有 http:// 时,它会显示正确的外部 url,但当它只有 www 或只有带有域的网站名称时,它会附加网页的 url。
Case 1 : url = http://google.com Works fine
Case 2: url = www.google.com creates a link as: http://localhost/appname/controller/action/www.google.com
【问题讨论】:
-
我也面临同样的问题。如果您找到了解决方案,请与我分享。