All pastes #412102 Raw Edit

Someone

public text v1 · immutable
#412102 ·published 2007-03-27 14:25 UTC
rendered paste body
#restore canonical domain
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.(.*)$
RewriteRule  http://%1%{REQUEST_URI} [R=301,L]


#<FLOW>
DirectoryIndex index.php index.html /_/dispatcher.php

RewriteCond %{REQUEST_URI} !(^|/)_/
RewriteCond %{REQUEST_URI} !(^|/)favicon.ico
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* _/dispatcher.php?_flow_not_index_ [QSA,L]

# those could be Directory / Files combo if put in httpd.conf
RewriteCond %{REQUEST_URI} ((^|/)_/temp/)|(^.*\.[a-z]+.php($|/.*$))
RewriteRule .* - [F,L]

#</FLOW>