View previous topic :: View next topic |
Author |
Message |
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Fri Aug 24, 2007 2:49 pm Post subject: mediawiki and mod_rewrite |
|
|
hi,
this is not really a gentoo issue, maybe somebody knows a hint anyway.
i set up mediawiki and want to have shorter url's.
the manuals i found 1, 2 refer to a little bit different situation, because i have url's of the form "http://wiki.xx.vu/index.php/Main_Page" but they talk about url's of the form "http://wiki.xx.vu/index.php?title=Main_Page". maybe this was the case in earlier versions of mediawiki. i use version 1.10.0.
who knows what i have to modify in my vhosts configuration and LocalSettings.php?
thanks in advance and kind regards
--alex |
|
Back to top |
|
|
rman77 n00b
Joined: 18 Sep 2004 Posts: 50 Location: USA
|
Posted: Fri Aug 24, 2007 5:17 pm Post subject: |
|
|
"http://wiki.xx.vu/index.php/Main_Page" is essentially a bit of a php hack that has the same effect as "http://wiki.xx.vu/index.php?title=Main_Page" but looks a bit nicer. I've never used mediawiki but there is a good chance that both will result in giving you the same page. (just try it)
You never actually asked a question though (or I just didn't pick up on it) but if your asking if this will work:
Code: | Options FollowSymLinks
# enable the rewriter
RewriteEngine on
# anything else is to be treated as an article title
RewriteRule ^(.+)$ /index.php?title=$1 [PT,L,QSA] |
The answer is yes |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|