所以这是我的文件夹结构 - 影响子网站自适应图像
在根文件夹中,我也有一个的.htaccess和自适应images.php文件。 htaccess告诉“基础”级网站使用自适应图像在较低分辨率的屏幕上为其图像提供服务。
但是,“另一个网站”文件夹中的某个网站现在不显示图像。这是有问题的网站http://rrrepo.co/ - 如果您尝试打开新选项卡中的某个图像,则会看到此图像 - http://rrrepo.co/img/A.png
这就是说,它无法在其父文件夹中找到自适应图像文件。
我不想在这个网站上的自适应图像。我不知道为什么它说它无法找到自适应图像文件,当基本级别的网站使用它就好了。
基准级htaccess是否影响文件夹中的所有其他网站?
任何人都知道如何解决?
感谢
编辑:
根的.htacess
# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
# enable expirations
ExpiresActive On
ExpiresDefault "modification plus 3 weeks"
ExpiresByType image/gif "modification plus 3 week"
ExpiresByType image/png "modification plus 3 week"
ExpiresByType image/jpeg "modification plus 3 week"
ExpiresByType image/pjpeg "modification plus 3 week"
ExpiresByType text/javascript "modification plus 3 week"
ExpiresByType text/html "modification"
ExpiresByType text/css "modification"
ExpiresByType application/javascript "modification plus 3 week"
# compress text, HTML, JavaScript, CSS, and XML
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
<IfModule mod_rewrite.c>
# For security reasons, Option followsymlinks cannot be overridden.
# Options +FollowSymlinks
Options +SymLinksIfOwnerMatch
RewriteEngine On
# Adaptive-Images -----------------------------------------------------------------------------------
# Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows:
# RewriteCond %{REQUEST_URI} !ignore-this-directory
# RewriteCond %{REQUEST_URI} !and-ignore-this-directory-too
RewriteCond %{REQUEST_URI} !assets
# don't apply the AI behaviour to images inside AI's cache folder:
RewriteCond %{REQUEST_URI} !ai-cache
# Send any GIF, JPG, or PNG request that IS NOT stored inside one of the above directories
# to adaptive-images.php so we can select appropriately sized versions
RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.php
# END Adaptive-Images -------------------------------------------------------------------------------
</IfModule>
添加您的.htaccess的问题[编辑] – Croises 2015-02-05 13:16:19
Croises - 我将它 – mildrenben 2015-02-05 13:24:56
的问题是在你的'adaptive-images.php''你将所有图片改写到这个页面 – Croises 2015-02-05 13:30:20