Просмотр исходного кода

Updated a RewriteRules for a cached index page

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20756 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic 16 лет назад
Родитель
Сommit
cf7b027bc4
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      documentation/manual/en/module_specs/Zend_Cache-Backends.xml

+ 2 - 0
documentation/manual/en/module_specs/Zend_Cache-Backends.xml

@@ -525,6 +525,8 @@ RewriteCond %{REQUEST_URI} feed/atom$
 RewriteCond %{DOCUMENT_ROOT}/cached/%{REQUEST_URI}.xml -f
 RewriteCond %{DOCUMENT_ROOT}/cached/%{REQUEST_URI}.xml -f
 RewriteRule .* cached/%{REQUEST_URI}.xml [L,T=application/atom+xml]
 RewriteRule .* cached/%{REQUEST_URI}.xml [L,T=application/atom+xml]
 
 
+RewriteCond %{DOCUMENT_ROOT}/cached/index.html -f
+RewriteRule ^/*$ cached/index.html [L]
 RewriteCond %{DOCUMENT_ROOT}/cached/%{REQUEST_URI}.(html|xml|json|opml|svg) -f
 RewriteCond %{DOCUMENT_ROOT}/cached/%{REQUEST_URI}.(html|xml|json|opml|svg) -f
 RewriteRule .* cached/%{REQUEST_URI}.%1 [L]
 RewriteRule .* cached/%{REQUEST_URI}.%1 [L]