Quoting Larry G. Wapnitsky, from the post of Sun, 14 Nov:
I cannot seem to locate any documentation on how to
properly implement
rewrite rules on MediaWiki 1.37. Can anyone point me in the right
direction?
here's how I define the virtual server in apache. I do it in the apache
config since doing it in the .htaccess is cumbersome, puts extra load on
the server and should generally only be used by people who don't control
the apache they run under:
# Allow wiki articles to start with a period
<Files .*>
Order Deny,Allow
Allow From All
</Files>
RewriteEngine on
RewriteRule ^/index.php/(.*)$ http://${SITENAME}.org/$1 [R,L]
RewriteCond %{REQUEST_URI} !^/(stylesheets|images|config|stats)/
RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php
RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteRule ^/(.*) /index.php/$1 [L]
--
Hot Stuff
Ira Abramov
http://ira.abramov.org/email/