Public feed #601563

Someone

public text v1 · immutable
Raw Edit
·published 2007-07-03 16:09 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]