Permalink
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 719 Bytes
DirectoryIndex index.php
Options -Indexes +MultiViews +FollowSymLinks
RedirectMatch 403 /config
<IfModule mod_rewrite.c>
# Tell PHP that the mod_rewrite module is ENABLED.
SetEnv HTTP_MOD_REWRITE On
RewriteEngine on
# Do not rewrite assets/ directory
RewriteRule assets/ - [L]
RewriteRule favicon.ico - [L]
RewriteRule ^$ - [L]
RewriteRule ^index.php - [L]
# URL for controllers
RewriteRule ([^/]+)/(.+)$ index.php?page=$1&id=$2&%{QUERY_STRING} [L]
RewriteRule ([^/]+)/$ index.php?page=$1&id=$2&%{QUERY_STRING} [L]
# Catch all for like http://camera.phor.net/cameralife/search+term
RewriteRule ^(.*)$ index.php?page=search&id=$1&%{QUERY_STRING} [L]
</IfModule>