From 4007dc6c5a28874e287defe09f16048b5d5c24a2 Mon Sep 17 00:00:00 2001 From: markseu Date: Thu, 10 Apr 2014 15:41:41 +0200 Subject: [PATCH] Hello static pages (rewrite update) --- .htaccess | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index 0307d1d..72503ff 100644 --- a/.htaccess +++ b/.htaccess @@ -1,21 +1,26 @@ -# Yellow .htaccess RewriteEngine on -# RewriteBase /yellow +# Yellow dynamic pages RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule ^(content|system)/ error404 [L] +RewriteCond %{DOCUMENT_ROOT}/yellow.php -f RewriteCond %{REQUEST_URI} \.(css|js|png)$ RewriteRule ^media/plugins/(core-.+) system/core/$1 [L] +RewriteCond %{DOCUMENT_ROOT}/yellow.php -f RewriteCond %{REQUEST_URI} \.(css|js|png)$ RewriteRule ^media/plugins/(.+) system/plugins/$1 [L] -RewriteRule ^$ yellow.php [L] +RewriteCond %{DOCUMENT_ROOT}/yellow.php -f RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ yellow.php [L] +DirectoryIndex index.html yellow.php + +# Yellow static pages RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^[^\.]+$ - [T=text/html,L] +ErrorDocument 404 /error404.html