All pastes #674449 Raw Edit

Anonymous

public text v1 · immutable
#674449 ·published 2007-08-29 08:03 UTC
rendered paste body
        RewriteEngine on

        RewriteBase /careers4sin/

        ## If requested file exists we're happy
        RewriteCond %{REQUEST_FILENAME} -f
        RewriteRule (.*) $1 [L]

        ## If not a file (no dot) send to webroots index
        RewriteRule    ^([^/]+)/?([^.]*)$    $1/webroot/index.php?url=$2    [QSA,L]

        ## If its a file look in projects webrrot
        RewriteRule    ^([^/]+)/(.*)$  $1/webroot/$2

        ## If its not there look in app's webroot
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^([^/]+)/(.*)$ app/$2 [L]