What happens, if you delete the following lines?
RewriteRule ^wiki/*$ /cbwiki/index.php [L,QSA] RewriteRule ^/*$ /cbwiki/index.php [L,QSA]
It's working for me this way:
"LocalSettings.php" $wgScriptPath = "/usr/cvb/mediawiki-1.15.1"; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true;
".htaccess" in my DOCUMENT_ROOT (/opt/lampp/htdocs): RewriteEngine On RewriteRule ^wiki/(.*)$ /usr/cvb/mediawiki-1.13.1/index.php?title=$1 [PT,L,QSA]
Best regards, Claus
---------- This message was sent from a MailNull anti-spam account. You can get your free account and take control over your email by visiting the following URL.
Thanks for your suggestion. Unfortunately this yielded a 500 internal server error in my configuration.
A few things...I've found out that my server runs php as an apache module so perhaps this should be taken into consideration. Also I already have a line in my .htaccess file setting the RewriteEngine to On as this command was necessary to get the permalinks working in WordPress. I'm wondering if rewriting it for the Short URLs is redundant or a mistake that is affecting the implementation of the Short URLs for MediaWiki?
I have made eight or ten different changes to both the LocalSettings.php and .htaccess. I have saved versions of some of these. I don't recall the outcome of all the changes but it would be either what like what happened above, I can't access my web site (www.lauraogrady.ca), or I can access the site but not the wiki (a 404) or I can access the site and the wiki but the Short URLs are not working.
I think the best approach at this stage is to try to make changes based on logic (what is known about my settings) rather than just trying everything and anything.
Thank you for any assistance.
Laura
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of clausvb.wikipedia@mailnull.com Sent: September 7, 2009 8:32 AM To: mediawiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] Enabling Short URL problem (Laura O'Grady)
What happens, if you delete the following lines?
RewriteRule ^wiki/*$ /cbwiki/index.php [L,QSA] RewriteRule ^/*$ /cbwiki/index.php [L,QSA]
It's working for me this way:
"LocalSettings.php" $wgScriptPath = "/usr/cvb/mediawiki-1.15.1"; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true;
".htaccess" in my DOCUMENT_ROOT (/opt/lampp/htdocs): RewriteEngine On RewriteRule ^wiki/(.*)$ /usr/cvb/mediawiki-1.13.1/index.php?title=$1 [PT,L,QSA]
Best regards, Claus
---------- This message was sent from a MailNull anti-spam account. You can get your free account and take control over your email by visiting the following URL.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Laura O'Grady wrote:
Thanks for your suggestion. Unfortunately this yielded a 500 internal server error in my configuration.
A few things...I've found out that my server runs php as an apache module so perhaps this should be taken into consideration. Also I already have a line in my .htaccess file setting the RewriteEngine to On as this command was necessary to get the permalinks working in WordPress. I'm wondering if rewriting it for the Short URLs is redundant or a mistake that is affecting the implementation of the Short URLs for MediaWiki?
I have made eight or ten different changes to both the LocalSettings.php and .htaccess. I have saved versions of some of these.
Then step down. The first thing is to determine what you want to get. Where fo you want your wiki, and where do you want WordPress.
Assuming you want to access the wiki at http://lauraogrady.ca/wiki/ the line "RewriteRule ^wiki/*$ /cbwiki/index.php [L,QSA]" is right but the line "RewriteRule ^/*$ /cbwiki/index.php [L,QSA]" which redirects accesses to http://lauraogrady.ca/ to the wiki will interfere with you wordpress install.
If the wiki redirects you to http://lauraogrady.ca/wiki/ and that's where you want it to lice, don't change LocalSettings.php, even if you're getting a 404. Function of the .htaccess is to make accesses to the chosen short url go to the index.php
I'm not clear yet about your suggested changes so here's some further information and questions.
Assuming you want to access the wiki at http://lauraogrady.ca/wiki/
It's not that I want to access the wiki at http://lauraogrady.ca/wiki/, it's that this is the method that is used in the Short URL process (i.e. the /wiki directory is fake). My wiki current resides in http://lauraogrady.ca/ckbwiki/ (note I had a typo in my first post, it is /ckbiki not /ckbwiki) and as such the localsettings.php and index.php (for MediaWiki) are called from there.
the line "RewriteRule ^wiki/*$ /cbwiki/index.php [L,QSA]" is right but
the line "RewriteRule ^/*$ /cbwiki/index.php [L,QSA]" which redirects accesses to >>http://lauraogrady.ca/ to the wiki will interfere with you wordpress install.
If the wiki redirects you to http://lauraogrady.ca/wiki/ and that's
where you want it to lice, don't change LocalSettings.php, even if you're getting a >>404. Function of the .htaccess is to make accesses to the chosen short url go to the index.php
What I'm trying to do is get the URLs to read in this format:
www.lauraogrady.ca/wiki/Main_Page instead of http://lauraogrady.ca/ckbwiki/index.php/Main_Page
I get what you mean about not being concerned about a 404 error but in this instance when I do get it this means I can't access the wiki. To be precise about the nature of the 404 in this context: I'm getting the 'file not found' template page from WordPress. WordPress has been installed in my public directory as a content management system.
Thanks.
Laura
Laura O'Grady wrote:
What I'm trying to do is get the URLs to read in this format:
www.lauraogrady.ca/wiki/Main_Page instead of http://lauraogrady.ca/ckbwiki/index.php/Main_Page
That's what I meant.
I get what you mean about not being concerned about a 404 error but in this instance when I do get it this means I can't access the wiki. To be precise about the nature of the 404 in this context: I'm getting the 'file not found' template page from WordPress. WordPress has been installed in my public directory as a content management system.
WordPress rules are taking priority over the wiki rule. Place "RewriteRule ^wiki/*$ /cbwiki/index.php [L,QSA]" before the other RewriteRule lines.
mediawiki-l@lists.wikimedia.org