Hi,
I try to change url in mediawiki site, so I can see wiki instead index.php in link. I am not able to do that.
Can you help me with that?
more info there Manual : Short URL
3 replies to this topic
#1
Posted 08 October 2011 - 08:05 PM
|
|
|
#2
Posted 11 October 2011 - 11:06 PM
Hello tut,
Have you decided on a format you wish your wiki addresses to be in? I will assume you wish for /wiki/page_title, however there are many other options. The proper steps are located here: Manual:Short URL/wiki/Page title -- no root access - MediaWiki
The first step will be to locate LocalSettings.php , and modify the following parameters:
The first being the location of the wiki folder, second being the wiki structure ($1 captures text, i.e. page_title) and the third being the location of your custom wiki logo.
If your host allows .htaccess files, you will then need to create a file named ".htaccess" (no quotes) and place the following contents within:
(assuming wiki is the structure, /w/ is where your actual Wikimedia files are located)
This should allow you to access pages by name rather than page as long as your structure matches the rules in the configuration.
Try to see if this helps you, and follow the available resources Wikimedia provides. If not, report back what you have done (and information on the structure and current configuration files) and we can find out the problem from there.
Alexander.
Have you decided on a format you wish your wiki addresses to be in? I will assume you wish for /wiki/page_title, however there are many other options. The proper steps are located here: Manual:Short URL/wiki/Page title -- no root access - MediaWiki
The first step will be to locate LocalSettings.php , and modify the following parameters:
$wgScriptPath = "/w"; $wgArticlePath = "/wiki/$1"; $wgScriptPath! $wgLogo = "$wgScriptPath/wiki_logo.png";
The first being the location of the wiki folder, second being the wiki structure ($1 captures text, i.e. page_title) and the third being the location of your custom wiki logo.
If your host allows .htaccess files, you will then need to create a file named ".htaccess" (no quotes) and place the following contents within:
RewriteEngine On RewriteRule ^/?wiki(/.*)?$ /w/index.php [PT,L,QSA] RewriteRule ^/*$ /w/index.php [L,QSA]
(assuming wiki is the structure, /w/ is where your actual Wikimedia files are located)
This should allow you to access pages by name rather than page as long as your structure matches the rules in the configuration.
Try to see if this helps you, and follow the available resources Wikimedia provides. If not, report back what you have done (and information on the structure and current configuration files) and we can find out the problem from there.
Alexander.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#3
Posted 06 November 2011 - 06:08 AM
Okay, thank you Alexander. It works.:) Now I need to have multiple wikis and every each of them shall sharing its commons resources.
examples
en.wiki1.mysite.com/wiki/article
es.wiki1.mysite.com/wiki/article
I found some solutions and I tried that
WikiHelp - MyCambrian
Manual:Wiki family - MediaWiki
or this extension
but I am unable to do it cause my skills aren t good enough. I see always some error or don t understand the manual.
Pls help.
examples
en.wiki1.mysite.com/wiki/article
es.wiki1.mysite.com/wiki/article
I found some solutions and I tried that
WikiHelp - MyCambrian
Manual:Wiki family - MediaWiki
or this extension
but I am unable to do it cause my skills aren t good enough. I see always some error or don t understand the manual.
Pls help.
#4
Posted 07 November 2011 - 02:35 AM
I am afraid I am not well acquainted with the Wikimedia platform or software.
Try to perform every step one at a time, after a brief look it seems to give you what you need. If you have any specific troubles always ask.
There may be some Wikimedia specific forums for installation advice, or some well written tutorials on the web for multi-Wiki setup.
Try to perform every step one at a time, after a brief look it seems to give you what you need. If you have any specific troubles always ask.
There may be some Wikimedia specific forums for installation advice, or some well written tutorials on the web for multi-Wiki setup.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









