Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
- # Enable the rewrite engine
- RewriteEngine On
- ## Add initial rule for rewriting requests to the 'oldWiki' folder to the new virtual script path
- RewriteRule ^/?oldWiki/(index|api).php(.*)$ /wiki/$1 [QSA,PT]
- # Short url for wiki pages
- RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
- # Redirect / to Main Page
- RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B]
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement