All pastes #819825 Raw Edit

Untitled

public text v1 · immutable
·published 2007-12-17 05:42 UTC
rendered paste body
# close the php security hole... 
#  not actually needed but probably a good idea anyway
php_flag register_globals off

# first, enable the processing - Unless your ISP has it enabled
# already.  That might cause weird errors.
RewriteEngine on

# uncomment this rule if you want Apache to redirect from www.mysite.com/ to
#  www.mysite.com/wiki/Main_Page
RewriteRule ^/$ /w/Main_Page [R]

RewriteRule ^/badlands/$ /badlands/w/Main_Page [R]

RewriteRule ^/members/$ /members/w/Main_Page [R]

# do the rewrite
RewriteRule ^w/?(.*)$ /index.php/$1 [L,QSA]

RewriteRule ^badlands/w/?(.*)$ /badlands/index.php/$1 [L,QSA]

RewriteRule ^members/w/?(.*)$ /members/index.php/$1 [L,QSA]