Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I've just installed Mediawiki on Apache and I want the URL should be:

localhost/Main_Page/
localhost/Special:Recent_Changes
...

instead of:

localhost/index.php/Main_Page/
localhost/index.php/Special:Recent_Changes

I've tried many times and in many ways but it still doesn't work. Any suggest for a "exactly" what to do, step by step. Mediawiki docs didn't talk about .htaccess. It had only Nginx and lighttpd.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

This MediaWiki documentation does talk about .htaccess.

share|improve this answer
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*)$ /mediawiki/index.php?title=$1&actions=$2 [L]

you can try out this....

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.