Hello static pages (rewrite update)
This commit is contained in:
parent
4ffca610a1
commit
4007dc6c5a
1 changed files with 8 additions and 3 deletions
11
.htaccess
11
.htaccess
|
@ -1,21 +1,26 @@
|
||||||
# Yellow .htaccess
|
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
|
|
||||||
# RewriteBase /yellow
|
# Yellow dynamic pages
|
||||||
|
|
||||||
RewriteCond %{ENV:REDIRECT_STATUS} ^$
|
RewriteCond %{ENV:REDIRECT_STATUS} ^$
|
||||||
RewriteRule ^(content|system)/ error404 [L]
|
RewriteRule ^(content|system)/ error404 [L]
|
||||||
|
RewriteCond %{DOCUMENT_ROOT}/yellow.php -f
|
||||||
RewriteCond %{REQUEST_URI} \.(css|js|png)$
|
RewriteCond %{REQUEST_URI} \.(css|js|png)$
|
||||||
RewriteRule ^media/plugins/(core-.+) system/core/$1 [L]
|
RewriteRule ^media/plugins/(core-.+) system/core/$1 [L]
|
||||||
|
RewriteCond %{DOCUMENT_ROOT}/yellow.php -f
|
||||||
RewriteCond %{REQUEST_URI} \.(css|js|png)$
|
RewriteCond %{REQUEST_URI} \.(css|js|png)$
|
||||||
RewriteRule ^media/plugins/(.+) system/plugins/$1 [L]
|
RewriteRule ^media/plugins/(.+) system/plugins/$1 [L]
|
||||||
|
|
||||||
RewriteRule ^$ yellow.php [L]
|
RewriteCond %{DOCUMENT_ROOT}/yellow.php -f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^ yellow.php [L]
|
RewriteRule ^ yellow.php [L]
|
||||||
|
DirectoryIndex index.html yellow.php
|
||||||
|
|
||||||
|
# Yellow static pages
|
||||||
|
|
||||||
RewriteCond %{REQUEST_FILENAME} -f
|
RewriteCond %{REQUEST_FILENAME} -f
|
||||||
RewriteRule ^[^\.]+$ - [T=text/html,L]
|
RewriteRule ^[^\.]+$ - [T=text/html,L]
|
||||||
|
ErrorDocument 404 /error404.html
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
Loading…
Add table
Reference in a new issue