-3
我在我的index.php
页面有一个图像。点击图片我必须重定向URL
到another Domain
使用.htaccess
重定向。.htaccess在php中重定向
我在我的index.php
页面有一个图像。点击图片我必须重定向URL
到another Domain
使用.htaccess
重定向。.htaccess在php中重定向
试试这个
HTML代码
<a href="http://yourdomain.com/img.jpg" target="_blank"><img src="foldername/img.jpg" alt="image" height="10px" width="25px">
</a>
的.htaccess CODE
RewriteRule ^img.jpg$ http://example.com/ [R=301,L]