Created
March 18, 2009 21:52
-
-
Save jashmenn/81429 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .htaccess file to redirect a hosted mediawiki with ugly urls to another server with pretty urls. | |
# Assumed that this is in a .htaccess file in in, say, the "mediawiki" directory. | |
# the rules change if it was in a server config. | |
Options +FollowSymlinks | |
RewriteEngine On | |
RewriteCond %{QUERY_STRING} title=(.*) | |
RewriteRule ^index.php(.*) http://wiki.mydomain.com/%1? [R,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment