From 8e028c425d6c33b791087539a8360dd04722a06b Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Thu, 11 Sep 2008 11:19:03 +0000 Subject: [PATCH] This does break staticpages for custom permalinks. Use a different 404 fallback, in staticpages. hopefully soon to come. until then, query {$view == '404'} in your template to show 404 content --- include/tpl/htaccess_cgi_rewrite.tpl | 2 +- include/tpl/htaccess_rewrite.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tpl/htaccess_cgi_rewrite.tpl b/include/tpl/htaccess_cgi_rewrite.tpl index 2933b122..c8d56b67 100644 --- a/include/tpl/htaccess_cgi_rewrite.tpl +++ b/include/tpl/htaccess_cgi_rewrite.tpl @@ -25,7 +25,7 @@ RewriteRule ^{PAT_COMMENTS} {indexFile}?url=/{PATH_COMMENTS}/$1 [L,QSA] RewriteRule ^{PAT_CSS} {indexFile}?url=/$1 [L,QSA] RewriteRule ^index\.(html?|php.+) {indexFile}?url=index.html [L,QSA] RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA] -RewriteCond %{REQUEST_URI} !-U +#RewriteCond %{REQUEST_URI} !-U RewriteRule (.*\.html?) {indexFile}?url=/$1 [L,QSA] diff --git a/include/tpl/htaccess_rewrite.tpl b/include/tpl/htaccess_rewrite.tpl index 81abccb9..a4801852 100644 --- a/include/tpl/htaccess_rewrite.tpl +++ b/include/tpl/htaccess_rewrite.tpl @@ -27,7 +27,7 @@ RewriteRule ^{PAT_COMMENTS} {indexFile}?url=/{PATH_COMMENTS}/$1 [L,QSA] RewriteRule ^{PAT_CSS} {indexFile}?url=/$1 [L,QSA] RewriteRule ^index\.(html?|php.+) {indexFile}?url=index.html [L,QSA] RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA] -RewriteCond %{REQUEST_URI} !-U +#RewriteCond %{REQUEST_URI} !-U RewriteRule (.*\.html?) {indexFile}?url=/$1 [L,QSA]