Jump to content

Manual talk:Short URL/Page title -- Working method with mediawiki-1.11

Add topic
From mediawiki.org
Latest comment: 16 years ago by 79.67.200.185

I used this method, it works, but wglogo doesnt work then, why? 79.67.200.185 09:54, 18 November 2007 (UTC)Reply

It works for me only without a leading slash in the regex:

RewriteRule ^(.*)$ /index.php/?title=$1 [L,QSA]

instead of

RewriteRule ^/(.*)$ /index.php/?title=$1 [L,QSA]

Please use the directives

RewriteLog logs/blah-blah.log
RewriteLogLevel 9

to debug your rewrite rules.

Problem with PNG-Images

[edit]

I used this code and it works but now I've got a case sensitive problem with PNG-images. JPG-Files use the path "images/...", PNG-Files "/Images/..." and are not found on UNIX/Linux. I used this as workaround, but I think there should be a better solution:

RewriteCond %{REQUEST_URI} ^/Images/
RewriteRule ^Images/(.*)$ /images/$1 [L,QSA]

Works with regular pages, but does not work with Specialpages

[edit]

After customizing my wiki like this i found out that it works great with regular pages (even editing pages and creating new pages does work), but when i try to display a specialpage (or the list of specialpages) it shows me HTTP 403 Error (Forbidden). Can anyone please help me to resolve this issue?

Thanks in Advance
best regards
TurboKanne, Thursday, February 7th.

After a couple of tests i found out this error appears whenever a page includes a colon (":") like Template:Matrix or Special:Allpages. So this probalbly relates to the rewrite rules, but how to edit them to avoid this error?
Please also see this here.
Thanks in Advance
best regards
TurboKanne, Thursday, February 8th.