On 06/01/2008, David Gerard <dgerard(a)gmail.com> wrote:
I eventually wrote some insanely complicated rewrite
rules :-) They
looked a bit like:
RewriteEngine On
RewriteRule ^/wiki/skins/(.+)$ /w/skins/$1 [L]
RewriteRule ^/wiki/images/(.+)$ /w/images/$1 [L]
RewriteRule ^/wiki/Images/(.+)$ /w/images/$1 [L]
RewriteRule ^/wiki$ /w/index.php?title=Main_Page [PT,L,QSA]
RewriteRule ^/wiki/$ /w/index.php?title=Main_Page [PT,L,QSA]
# RewriteRule ^/wiki/index.php\?title=(.+)$ /w/index.php?title=$1
RewriteRule ^/wiki/(.+)$ /w/index.php?title=$1 [PT,L,QSA]
As you can see, I was basically experimenting to see what the hell
worked, commenting and uncommenting lines as I went.
Everyone ends up with a twisty maze of little rewrite
rules, all
different, but you can do most of the awful things you may have to.
- d.