I've been attempting for several weeks now to get my installation on Mediawiki to print its URL's as follows:
http://server.mydomain.com/wiki/index.php/Main_Page
Here is my system/setup info:
Red Hat EL 3 Apache 2.0.46 PHP 4.3.2-33 (running in module mode to Apache - I think???)
DocumentRoot "/var/www/html" Mediawiki files located in: /var/www/html/wiki
LocalSettings.php $wgScriptPath = "/wiki"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
$wgArticlePath = "$wgScript/$1"; #$wgArticlePath = "$wgScript?title=$1";
Thanks in Advance, -Ed
Disclaimer: Any references to Pipeline performance contained herein are based on historic performance levels which Pipeline expects to maintain or exceed but nevertheless does not guarantee. Congested networks, price volatility, or other extraordinary events may impede future trading activities and degrade performance statistics.
On 06/12/2007, Ed Melendez ed.melendez@pipelinefinancial.com wrote:
I've been attempting for several weeks now to get my installation on Mediawiki to print its URL's as follows:
What actually happens? What is it that's going wrong?
I'm getting Error 404 and the following in my error_log file:
[Thu Dec 06 15:57:36 2007] [error] [client xx.xx.xx.xx] File does not exist: /var/www/html/wiki/index.php/Main_Page
-Ed
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Thomas Dalton Sent: Thursday, December 06, 2007 16:57 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Short URLs
On 06/12/2007, Ed Melendez ed.melendez@pipelinefinancial.com wrote:
I've been attempting for several weeks now to get my installation on Mediawiki to print its URL's as follows:
What actually happens? What is it that's going wrong?
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Disclaimer: Any references to Pipeline performance contained herein are based on historic performance levels which Pipeline expects to maintain or exceed but nevertheless does not guarantee. Congested networks, price volatility, or other extraordinary events may impede future trading activities and degrade performance statistics.
On 06/12/2007, Ed Melendez ed.melendez@pipelinefinancial.com wrote:
I'm getting Error 404 and the following in my error_log file:
[Thu Dec 06 15:57:36 2007] [error] [client xx.xx.xx.xx] File does not exist: /var/www/html/wiki/index.php/Main_Page
Sounds like a problem with either Apache or PHP not recognising "/" as a valid way to refer to parameters. I'm not sure what the config option is, but there's probably something you need to turn on in your apache config file (or possibly php.ini). (You'll probably be able to find it just by looking at the file, it might be there but commented out or something.)
2007/12/6, Ed Melendez ed.melendez@pipelinefinancial.com:
I've been attempting for several weeks now to get my installation on Mediawiki to print its URL's as follows:
http://server.mydomain.com/wiki/index.php/Main_Page
Here is my system/setup info:
Red Hat EL 3 Apache 2.0.46 PHP 4.3.2-33 (running in module mode to Apache - I think???)
DocumentRoot "/var/www/html" Mediawiki files located in: /var/www/html/wiki
LocalSettings.php $wgScriptPath = "/wiki"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
$wgArticlePath = "$wgScript/$1"; #$wgArticlePath = "$wgScript?title=$1";
Thanks in Advance, -Ed
Have you got any rewrite rules set in your .htaccess or httpd.conf? http://www.mediawiki.org/wiki/Manual:Short_URL has a bunch of info that you may find useful if not.
I've tried using a rewrite rule, but (1) I couldn't find an example that exactly matches what I want, and (2) none of the ones I did try worked.
I'm afraid I don't know enough about rewrite rules to properly troubleshoot why it isn't working.
-Ed
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Schneelocke Sent: Thursday, December 06, 2007 17:01 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Short URLs
2007/12/6, Ed Melendez ed.melendez@pipelinefinancial.com:
I've been attempting for several weeks now to get my installation on Mediawiki to print its URL's as follows:
http://server.mydomain.com/wiki/index.php/Main_Page
Here is my system/setup info:
Red Hat EL 3 Apache 2.0.46 PHP 4.3.2-33 (running in module mode to Apache - I think???)
DocumentRoot "/var/www/html" Mediawiki files located in: /var/www/html/wiki
LocalSettings.php $wgScriptPath = "/wiki"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
$wgArticlePath = "$wgScript/$1"; #$wgArticlePath = "$wgScript?title=$1";
Thanks in Advance, -Ed
Have you got any rewrite rules set in your .htaccess or httpd.conf? http://www.mediawiki.org/wiki/Manual:Short_URL has a bunch of info that you may find useful if not.
Hi Ed,
I've tried using a rewrite rule, but (1) I couldn't find an example that exactly matches what I want, and (2) none of the ones I did try worked.
I'm afraid I don't know enough about rewrite rules to properly troubleshoot why it isn't working.
Here's what I'm using:
RewriteEngine on RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA]
The actual MediaWiki installation resides in /w/, while pretty URLs use /wiki/ (e.g. /wiki/Main_Page etc.). If having different directories there is OK for you, the above or some variation thereof should work.
I really must use the exact URL as stated previously, and the location of files is quite important as well.
What accompanying changes have you made in you LocalSettings.php file.
-Ed
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Schneelocke Sent: Thursday, December 06, 2007 17:16 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Short URLs
Hi Ed,
I've tried using a rewrite rule, but (1) I couldn't find an example
that
exactly matches what I want, and (2) none of the ones I did try
worked.
I'm afraid I don't know enough about rewrite rules to properly troubleshoot why it isn't working.
Here's what I'm using:
RewriteEngine on RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA]
The actual MediaWiki installation resides in /w/, while pretty URLs use /wiki/ (e.g. /wiki/Main_Page etc.). If having different directories there is OK for you, the above or some variation thereof should work.
Hi Ed,
I really must use the exact URL as stated previously, and the location of files is quite important as well.
What accompanying changes have you made in you LocalSettings.php file.
$wgScriptPath = "/w"; $wgArticlePath = "/wiki/$1";
On 06/12/2007, Ed Melendez ed.melendez@pipelinefinancial.com wrote:
I really must use the exact URL as stated previously, and the location of files is quite important as well.
What you're trying to do isn't short urls, short urls is where you don't have "index.php" in the url (well, I guess that's actually "pretty urls", but you wouldn't normally shorten urls without making them pretty). You shouldn't need any kind of rewrites. I think you just need to configure php/apache correctly.
Whether it's rewrites or configuration of Apache/PHP... I could use assistance.
Thanks, -Ed
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Thomas Dalton Sent: Friday, December 07, 2007 09:04 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Short URLs
On 06/12/2007, Ed Melendez ed.melendez@pipelinefinancial.com wrote:
I really must use the exact URL as stated previously, and the location of files is quite important as well.
What you're trying to do isn't short urls, short urls is where you don't have "index.php" in the url (well, I guess that's actually "pretty urls", but you wouldn't normally shorten urls without making them pretty). You shouldn't need any kind of rewrites. I think you just need to configure php/apache correctly.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Disclaimer: Any references to Pipeline performance contained herein are based on historic performance levels which Pipeline expects to maintain or exceed but nevertheless does not guarantee. Congested networks, price volatility, or other extraordinary events may impede future trading activities and degrade performance statistics.
Ed Melendez wrote:
Whether it's rewrites or configuration of Apache/PHP... I could use assistance.
Thanks, -Ed
That url should directly work, and if it's available the installer usually autoconfigures it. The 404 comes from the server, so you need to configure apache. Try setting: AcceptPathInfo On
That works!!!!
Thanks, -Ed
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Platonides Sent: Friday, December 07, 2007 10:40 To: mediawiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] Short URLs
Ed Melendez wrote:
Whether it's rewrites or configuration of Apache/PHP... I could use assistance.
Thanks, -Ed
That url should directly work, and if it's available the installer usually autoconfigures it. The 404 comes from the server, so you need to
configure apache. Try setting: AcceptPathInfo On
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Disclaimer: Any references to Pipeline performance contained herein are based on historic performance levels which Pipeline expects to maintain or exceed but nevertheless does not guarantee. Congested networks, price volatility, or other extraordinary events may impede future trading activities and degrade performance statistics.
mediawiki-l@lists.wikimedia.org