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