我的这些老的网站,它有它的所有.htm文件这样下面的图片链接,用htaccess Rewite图像路径?
<img border="0" src="images/logo.jpg" alt="xxx" width="170" height="150">
我想知道如果我能与所有图片网址前加上一个绝对路径 htaccess的。
例如,
<img border="0" src="http://localhost/mysite/local/applications/bin/oldsite/images/logo.jpg" alt="xxx" width="170" height="150">
这可能吗?
或者我必须手动更改文件的图像路径文件?
我的企图,
RewriteRule ^(.*\.(gif|jpg|png))$ local/applications/bin/oldsite/images/$1 [QSA,L]
不工作的过程!
感谢您的回答。我只是测试它,但仍然没有改变...... :( – laukok 2013-02-09 23:34:07