Thanks Huji!
When I remove all URL shortening as per Huji's advice the problem goes away. However I would like short URLs and so need to fix my this. Now the problem has been isolate how do I fix it?
I've gone over my code again and as far as I can see everything is as described in this article: http://www.mediawiki.org/wiki/Manual:Short_URL#Guide
Here is my .htaccess, vhost_ssl.conf and LocalSettings.php code:
.htaccess: # Don't show directory listings for URLs which map to a directory. Options All -Indexes
# Force all traffic to use secure connection RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%%7BHTTP_HOST%7D%%7BREQUEST_URI%7D
vhost_ssl.conf: # MediaWiki Short URL Aliases #These must come last, and in this order! Alias /brandstandards /var/www/vhosts/domain.com/httpdocs/bs/index.php Alias /wiki /var/www/vhosts/domain.com/httpdocs/w/index.php Alias /index.php /var/www/vhosts/domain.com/httpdocs/w/index.php (There are two Wikis on the domain but that's not the cause of the problem)
LocalSettings.php: ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. $wgScriptPath = "/w"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
$wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true;
$wgStylePath = "$wgScriptPath/skins"; $wgStyleDirectory = "$IP/skins"; $wgLogo = "$wgStylePath/common/images/logo.png";
$wgUploadPath = "$wgScriptPath/img_auth.php";
On 08/02/2008, Huji huji.huji@gmail.com wrote:
Then the first place to look into is the short URL algorithm. It is not a MediaWiki bug I guess, and not one of Apache or PHP (because the page content is not touched). It only happens to the URL, so it is probably related to the URL rewriting. I'm not good in Apache rewrites; maybe someone else can help you with that.
Huji
On Feb 7, 2008 10:31 PM, Matthew Vickery vickery.matthew@gmail.com wrote:
Sorry Huji, An apostrophe in the "content" of the page appears correctly as an apostrophe both before and after the page has been saved.
Hope this helps?
Matthew
On 07/02/2008, Huji huji.huji@gmail.com wrote:
You still didn't tell what happens if you put an apostrophe in the
"content"
of the page and save it. Does that also change to a question mark?
On Feb 7, 2008 7:55 PM, Matthew Vickery vickery.matthew@gmail.com
wrote:
Thanks for your responses. Here are some answers to your questions.
If I create a new page with an apostrophe in the title (e.g. What's_in_Season_this_Month) and some text in the body and save it. When I follow a Wikilink to the page the page is not found and I get the message below and the apostrophe in the page title is converted to a question mark (What?s in Season this Month):
'There is currently no text in this page, you can search for this page title in other pages or edit this page'
The edit link in the message above the brings me to a blank edit
screen:
/w/index.php?title=What%3Fs_in_Season_this_Month&action=edit
Where the apostrophe has been replaced with %3F rather than %27
%3F being a question mark and %27 being an apostrophe.
The only way I can access the body of the page is to manually type an edit URL as follows:
/w/index.php?title=What%27s_in_Season_this_Month&action=edit
Here is my .htaccess code:
# Don't show directory listings for URLs which map to a directory. Options All -Indexes
# Force all traffic to use secure connection RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%%7BHTTP_HOST%7D%%7BREQUEST_URI%7D
Hope this will shed some light!
Matthew
On 06/02/2008, Thomas Dalton thomas.dalton@gmail.com wrote:
Also, what version of MediaWiki are you using? (Paste it from Special:Version)
He already said:
"My Wiki installation is as follows:
MediaWiki: 1.10.0 PHP: 5.2.2 (apache2handler) MySQL: 4.1.20"
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l