如何将此共享图像重定向到外部链接?

时间:2013-10-16 12:52:30

标签: magento redirect hyperlink sharing

我想将这些共享图片重定向到各自的网站..

我有一个代码就是这个..!

 <identifier>block_footer_top2_left</identifier>
     <content><![CDATA[<div class="social-links">

<a class="first" href="#" title="Follow us on Twitter">
    <span class="icon icon-hover i-twitter-w"></span>
</a>
<a href="#" title="Join us on Facebook">
    <span class="icon icon-hover i-facebook-w"></span>
</a>
<a href="#" title="Join us on Google Plus">
    <span class="icon icon-hover i-googleplus-w"></span>
</a>
<a href="#" title="Youtube">
    <span class="icon icon-hover i-youtube-w"></span>
</a>
<a href="#" title="Vimeo">
    <span class="icon icon-hover i-vimeo-w"></span>
</a>
<a href="#" title="Wordpress">
    <span class="icon icon-hover i-wordpress-w"></span>
</a>
<a href="#" title="Pinterest">
    <span class="icon icon-hover i-pinterest-w"></span>
</a>
<a href="#" title="Linked in">
    <span class="icon icon-hover i-linkedin-w"></span>
</a>
<a href="#" title="Blogger">
    <span class="icon icon-hover i-blogger-w"></span>
</a>
<a href="#" title="Envato marketplaces">
    <span class="icon icon-hover i-envato-w"></span>
</a>

但是当我在代码中写出www.facebook.com/mypage而不是#时......

该页面打开为www.mysite.com/index/www.facebook.com/mypage

这就是我的404错误

如何将其重定向到我的Facebook页面..?

2 个答案:

答案 0 :(得分:0)

添加http://www.facebook.com/mypage代替www.facebook.com/mypage。会工作。

如果想在新窗口中打开,请在锚标记中添加:target="_blank"

答案 1 :(得分:0)

尝试写这样的网址

http://www.facebook.com/

append http:: in url

只是示例

<a title="Facebook" href="http://www.facebook.com/mypage" target="_blank">