[MediaWiki-l] mediawiki short web urls

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[MediaWiki-l] mediawiki short web urls

WikiMedia General mailing list
Running xampp on windows
Trying to get short urls to work.


If I'm logged in I can get to the pages in the main namespace and get forbidden Error 403  in any other namespace



LocalSettings.php

$wgScriptPath = "";

$wgArticlePath = "/$1";

$wgUsePathInfo = true;





.htaccess file

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*) /index.php/$1 [L]



Looked at a lot of pages about mediawiki short urls and nothing works

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: mediawiki short web urls

WikiMedia General mailing list
Although this article https://bz.apache.org/bugzilla/show_bug.cgi?id=41441#c4  says that colon(:) will not work on apache for windows, I was able get it working.

No .htaccess file
Added this to the bottom of my VirtualHost

Alias /wiki D:/Data/htdocs/wiki/index.php
</VirtualHost>

And this to the bottom of Local settings

$wgScriptPath = "";
$wgArticlePath = "/wiki/$1";
$wgArticleURL = $wgServer."/wiki";
$wgScriptExtension = ".php";
$wgUsePathInfo = true;



-----Original Message-----
From: MediaWiki-l <[hidden email]> On Behalf Of Legault, Phillip [GTSUS] via MediaWiki-l
Sent: Thursday, March 12, 2020 11:23 AM
To: MediaWiki announcements and site admin list <[hidden email]>
Subject: [EXTERNAL] [MediaWiki-l] mediawiki short web urls

WARNING: This email originated from outside the company. Do not click on links unless you recognize the sender and have confidence the content is safe. If you have concerns about this email, send it as an attachment to ‘[hidden email]’.

Running xampp on windows
Trying to get short urls to work.


If I'm logged in I can get to the pages in the main namespace and get forbidden Error 403  in any other namespace



LocalSettings.php

$wgScriptPath = "";

$wgArticlePath = "/$1";

$wgUsePathInfo = true;





.htaccess file

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*) /index.php/$1 [L]



Looked at a lot of pages about mediawiki short urls and nothing works

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l