【问题标题】:htaccess to rewrite image url from other sitehtaccess 从其他站点重写图像 url
【发布时间】:2012-07-18 02:08:29
【问题描述】:

我想重写其他网站的图片网址,例如:

来自其他网站的图片:

http://othersite.com/images/dir/image1.jpg

我想隐藏该链接到:

http://mysite.com/images/dir/image1.jpg

现在我使用这个 htaccess

RewriteRule ^images/dir/(.*)$ http://othersite.com/images/dir/$1 [L,R=301]

它正在工作,但是当链接打开时它会变成原始链接,我希望访问者仍然会看到链接不会变成原始链接

【问题讨论】:

    标签: image .htaccess rewrite cloaking


    【解决方案1】:

    尝试删除 R=301 以便它仍然转发请求但不重写 url。如果其他网站不是你自己的,你真的应该请求允许使用他们的图片。除了版权问题,盗链在技术上是在窃取带宽,如果站长知道他在做什么,不难发现并关闭......

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-07
      • 1970-01-01
      相关资源
      最近更新 更多