Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 使用htaccess从其他域读取映像_.htaccess - Fatal编程技术网

.htaccess 使用htaccess从其他域读取映像

.htaccess 使用htaccess从其他域读取映像,.htaccess,.htaccess,htaccess中是否有转换的方法: 图片/图书馆/旅游预览/布拉尼城堡7.jpg?f=png&w=250&h=190&far=0 致: phpThumb/phpThumb.php?src= 所以基本上: 1) “theimages”被phpThumb/phpThumb.php?src替换= 2) 那这个呢?在原来的链接将被替换为, 非常感谢您可以在文档\u ROOT/.htaccess文件中使用此代码: RewriteEngine On RewriteBase / RewriteRule ^

htaccess中是否有转换的方法:

图片/图书馆/旅游预览/布拉尼城堡7.jpg?f=png&w=250&h=190&far=0

致:

phpThumb/phpThumb.php?src=

所以基本上: 1) “theimages”被phpThumb/phpThumb.php?src替换=

2) 那这个呢?在原来的链接将被替换为,


非常感谢

您可以在
文档\u ROOT/.htaccess
文件中使用此代码:

RewriteEngine On
RewriteBase /

RewriteRule ^theimages/(.+)/?$ phpThumb/phpThumb.php?src=http://example.com/$1 [L,NC,QSA,NE]