Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.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
WordPress:允许在一个文件夹中热链接图像,或者在主题内的文件夹中热链接一个特定图像?_Wordpress_Image_.htaccess_Hotlinking - Fatal编程技术网

WordPress:允许在一个文件夹中热链接图像,或者在主题内的文件夹中热链接一个特定图像?

WordPress:允许在一个文件夹中热链接图像,或者在主题内的文件夹中热链接一个特定图像?,wordpress,image,.htaccess,hotlinking,Wordpress,Image,.htaccess,Hotlinking,如何允许从一个文件夹或仅从一个图像热链接图像。 我试过这个 RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com [NC] RewriteCond %{REQUEST_URI} !^wp-content/themes/mytheme/image-folder/images/pictures/.+\.(gif|jpe?g|png)$ RewriteCond %{REQUES

如何允许从一个文件夹或仅从一个图像热链接图像。 我试过这个

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com [NC]
RewriteCond %{REQUEST_URI}  !^wp-content/themes/mytheme/image-folder/images/pictures/.+\.(gif|jpe?g|png)$
RewriteCond %{REQUEST_URI}  !^wp-content/themes/mytheme/image-folder/images/img/photo.png $
RewriteRule \.(gif|jpe?g|png)$ - [F,NC,L]
但这是行不通的。 感谢您的帮助。
谢谢。

但是这样不行吗?什么不工作?禁止使用允许的文件夹和图像文件。无法进行热链接。