mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-09-01 23:37:56 +02:00
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@70148 467b73ca-7a2a-4603-9d3b-597d59a354a9
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
### SILVERSTRIPE START ###
|
|
RewriteEngine On
|
|
|
|
## CONFIG FOR DEV ENVIRONMENTS
|
|
|
|
# Cached content - **sitedir** subdirectory
|
|
RewriteCond %{REQUEST_METHOD} ^GET$
|
|
RewriteCond %{QUERY_STRING} ^$
|
|
RewriteCond %{REQUEST_URI} ^/**sitedir**/(.*)$
|
|
RewriteCond %{REQUEST_URI} /**sitedir**/(.*[^/])/?$
|
|
RewriteCond %{DOCUMENT_ROOT}/**sitedir**/cache/%1.php -f
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule .* /**sitedir**/cache/%1.php [L]
|
|
|
|
# Cached content - homepage
|
|
RewriteCond %{REQUEST_METHOD} ^GET$
|
|
RewriteCond %{QUERY_STRING} ^$
|
|
RewriteCond %{REQUEST_URI} ^/**sitedir**/?$
|
|
RewriteCond /**sitedir**/cache/index.php -f
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule .* /**sitedir**/cache/index.php [L]
|
|
|
|
## CONFIG FOR TEST/LIVE ENVIRONMENTS
|
|
|
|
# Cached content - live webserver
|
|
RewriteCond %{REQUEST_METHOD} ^GET$
|
|
RewriteCond %{QUERY_STRING} ^$
|
|
RewriteCond %{REQUEST_URI} /(.*[^/])/?$
|
|
RewriteCond %{DOCUMENT_ROOT}/cache/%1.php -f
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule .* /cache/%1.php [L]
|
|
|
|
# Cached content - homepage
|
|
RewriteCond %{REQUEST_METHOD} ^GET$
|
|
RewriteCond %{QUERY_STRING} ^$
|
|
RewriteCond %{REQUEST_URI} ^/?$
|
|
RewriteCond %{DOCUMENT_ROOT}/cache/index.php -f
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule .* /cache/index.php [L] |