All pastes #766926 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-11-09 09:08 UTC
rendered paste body
# 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]