forked from klevo/wildflower
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
38 lines (31 loc) · 1.44 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#################################################################
# Wildflower htaccess #
# php5 conf, short url settings, #
# preferring a url for SEO & Optimization #
# asset plugin change to your cache dir for these #
#################################################################
# PHP version - on _some_ web hosts you enable PHP5 like this:
# AddType x-mapp-php5 .php
# AddHandler x-mapp-php5 .php
<IfModule mod_rewrite.c>
RewriteEngine on
# RewriteBase /
# Maitenance mode: (uncoment following line)
# RewriteRule ^(.*)$ app/webroot/offline.html [L]
# HTML cache - would be great to be able to cache txt & xml here to in some cases
RewriteCond %{REQUEST_METHOD} ^GET$
RewriteCond %{DOCUMENT_ROOT}/app/webroot/cache/$1/index.html -f
RewriteRule ^(.*)$ app/webroot/cache/$1/index.html [L]
# rewrite urls accessing shorts
#RewriteCond %{HTTP_HOST}{REQUEST_URI} majic.wildflower\.ss29\/s\/([a-zA-Z0-9]{4})$ [NC]
#RewriteRule ^(.*)$ http://majic.wildflower.ss29/$1 [R=301,L]
# rewrite urls accessing not accessing www. to use www.
#RewriteCond %{HTTP_HOST} ^majic\.wildflower\.ss29$ [NC]
#RewriteRule ^(.*)$ http://www.majic.wildflower.ss29/$1 [R=301,L]
# asset cfg
#RewriteCond %{DOCUMENT_ROOT}/app/webroot/(ccss|cjs)/(.*) -f
#RewriteRule ^(ccss|cjs)/(.*)$ app/webroot/S1/$2 [L]
# main cake
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>