All pastes #840072 Raw Edit

Untitled

public text v1 · immutable
#840072 ·published 2007-12-31 13:26 UTC
rendered paste body
# first bypass all rules for existant file requests
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# now we should only see 'dynamic requests'
# first handle the /w(iki)/ ones

RewriteRule w(iki)?/(.*) w/index.php?title=$1 [PT,L,QSA]
# same for the toulon stuff

# END NOODL :-)


# standard Drupal handler.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !^w/.*$
#RewriteCond %{REQUEST_FILENAME} !wiki/
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

# standard MediaWiki handler.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^toulon/(.*)$ w/index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/(.*)$ w/index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ wiki/ [L,QSA]