Skip to content
Browse files

Renamed htaccess

  • Loading branch information...
1 parent 9a24b51 commit 11b7991649da3e8d963548ca648c9ab613eb2cdd @deepwinter committed Mar 3, 2013
Showing with 11 additions and 17 deletions.
  1. +11 −17 cookbook/{moplib.htaccess → lattice.htaccess}
View
28 cookbook/moplib.htaccess → cookbook/lattice.htaccess
@@ -11,26 +11,13 @@ RewriteEngine On
Deny From All
</Files>
-RewriteRule ^(crossdomain.xml|index.php|robots.txt|favicon.ico) - [PT,L]
-RewriteRule ^application/media/* - [PT,L]
-# Protect system files from being viewed
-RewriteRule ^(?:system)\b.* index.php/$0 [L]
+RewriteRule ^application/media/* - [PT,L]
+RewriteRule ^old/* - [PT,L]
+RewriteRule ^files/* - [PT,L]
-# Allow any files or directories that exist to be displayed directly
-#RewriteCond %{REQUEST_filename} !-f
-#RewriteCond %{REQUEST_filename} !-d
+RewriteRule ^(crossdomain.xml|index.php|robots.txt|favicon.ico) - [PT,L]
-RewriteRule ^(.*)staging/application/media/(.*) - [PT,L]
-RewriteRule ^staging/(.*css)$ $1 [PT,L]
-RewriteRule ^staging/(.*js)$ $1 [PT,L]
-RewriteRule ^staging/(.*jpg)$ $1 [PT,L]
-RewriteRule ^staging/(.*gif)$ $1 [PT,L]
-RewriteRule ^staging/(.*png)$ $1 [PT,L]
-RewriteRule ^staging/(.*swf)$ $1 [PT,L]
-RewriteRule ^staging/(.*flv)$ $1 [PT,L]
-RewriteRule ^staging/(.*f4v)$ $1 [PT,L]
-RewriteRule ^staging/(.*)pdf$ - [PT,L]
# Allow css and js to be displayed directly
RewriteRule ^(.*)css$ - [PT,L]
@@ -42,7 +29,14 @@ RewriteRule ^(.*)swf$ - [PT,L]
RewriteRule ^(.*)flv$ - [PT,L]
RewriteRule ^(.*)f4v$ - [PT,L]
RewriteRule ^(.*)pdf$ - [PT,L]
+RewriteRule ^(.*)ttf$ - [PT,L]
+
+
+# Protect application and system files from being viewed
+RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
+
# Rewrite all other URLs to index.php/URL
+RewriteRule ^(.*).html$ index.php/$1 [PT]
RewriteRule ^(.*)$ index.php/$1 [PT]

0 comments on commit 11b7991

Please sign in to comment.
Something went wrong with that request. Please try again.