[Mediawiki-l] Url Rewrite
Giovanni Putignano
gputignano at tiscali.it
Wed Jul 5 14:18:19 UTC 2006
> He means what are the contents of your .htaccess file?
I have this code:
# 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 ^/$ /wiki/Main_Page [R]
# do the rewrite
RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA]
Giovanni
More information about the MediaWiki-l
mailing list