Topic on Project:Support desk

Rewrite MediaWiki's URLs - change index.php to Wiki on Main page

2
Thatnewman (talkcontribs)

Hello I am New to Media Wiki and I would like to change The default from /Index.php to /wiki.


this is what my website looks like https://en.website.org/index.php/Main_Page

And what I want is https://en.website.org/wiki/Main_Page


Please, don't instruct me to read: https://www.mediawiki.org/wiki/Manual:Short_URL, the guide might be clear for you guys but at least for me, it isn't.


I Already changed $wgScriptPath = ''; to $wgArticlePath = '/wiki/$1';

what Else do I need to do?????????

and Secondly

is it also possible to use both

$wgScriptPath = '/w';

$wgArticlePath = '/wiki/$1';

Together

Example Below

https://en.wikipedia.org/w/index.php?search=hksdsdsdjs and https://en.wikipedia.org/wiki/Main_Page


One Has w and the other one has wiki.

Jonathan3 (talkcontribs)
Reply to "Rewrite MediaWiki's URLs - change index.php to Wiki on Main page"