Miscellany
public text v1 · immutable# Turn on the Rewrite Engine
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
# If the file or directory exists, show it
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
# Blank queries get sent to the index
RewriteRule ^$ index.php? [L]
# All other queries get sent to the index as index.php/whatever
RewriteRule ^(.*)$ index.php?/$1 [L]