philsturgeon / pyrocms

PyroCMS is a CMS built using the CodeIgniter PHP framework with modularity in mind. Lightweight, themeable and dynamic.

This URL has Read+Write access

pyrocms / .htaccess
100755 20 lines (16 sloc) 0.699 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
 
# Redirects direct controller views to the right URL
# Not so much for security, done for Coda previews
RewriteRule modules/(.+)/controllers/(.+)\.php$ /index.php/$1/$2 [L,R=301]
RewriteRule controllers/(.+)\.php$ /index.php/$1 [L,R=301]
 
# Remove the .html extention if present (and not an existing file)
RewriteCond %{REQUEST_URI} ^(.*)\.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)\.html$ index.php/$1 [L]
 
# Send request via index.php (again, not if its a real file or folder)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>