Manual talk:Short URL/Ampersand solution

Moved
This article originally appeared at Manual:Very short URL. Odessaukrain 18:52, 6 October 2007 (UTC)

root access
I don't believe any of these modifications require root access. It all talks about modifying .htaccess and some of the wiki files, which any user that can access their mediawiki installation should be able to access. Nynexman4464 15:41, 13 October 2007 (UTC)
 * agree, fixed. --Kenny5 13:31, 30 August 2008 (UTC)

Ampersand
None of these ampersand fixes works for me.

As is (1.13), the delete, history, diff and edit actions all work (i.e., when there is a second ampersand), but not the move action and, most importantly, the page itself won't show. Guido den Broeder 12:13, 26 August 2008 (UTC)

Problem no longer exists?
I'm running 1.13.x and I don't seem to have any of these ampersand problems. Does this only affect old versions of MediaWiki? --162.129.248.6 22:50, 20 December 2008 (UTC)


 * You won't have any problems if you're using an alias instead of rewrite rules. This is an Apache problem, so if it's been fixed it's because the bug has been fixed. (The bug's status seems unclear at the moment.) —Emufarmers(T 07:34, 22 December 2008 (UTC)

Help Request On Same Issue
When I use an url encoded URL and URL canonicalization together, following issue occurs:

www.mydomain.net/Candarl%C4%B1_K%C3%B6y%C3%BC%2C_Bursa redirects to

mydomain.net/Candarl%25C4%25B1_K%25C3%25B6y%25C3%25BC%252C_Bursa (which is corrupted)

As can be seen, Apache server adds extra "25" string nearby the "%". This is explained as an Apache Server bug, I'm not able to correct this with a patch because I'm on a shared hosting. So the only option seems to correct this with a rewrite rule. Would (for example) the following line correct my issue?

RewriteRule ^(.*)\%25(.*)$ $1$2

Regards --193.108.213.144 11:42, 19 January 2009 (UTC)

Another solution
I'm using MediaWiki 1.15.1, .php5 and http://sub.domain.com/wiki/Article and this works for me:

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.*)\&(.*)$ w/index.php5?title=$1\%26$2 RewriteRule ^wiki/(.*)$ w/index.php5?title=$1 [PT,L,QSA] RewriteRule ^wiki/*$ wiki/ [L,QSA] RewriteRule ^/*$ wiki/ [L,QSA]

Cheers, --Till Kraemer 20:13, 12 October 2009 (UTC)

Help Request On Similar Issue
I´m using MediaWiki 1.16.0 and PHP 5.2.11 I have a similar issue. Whenever I have an article with quotation marks ("") on the title, I cannot redirect to it. For example
 * My article

when I save the page, the part that was between the double quotes disappears, so you will only have
 * My article

Do you know how could I handle this problem? Thanks Fladei 19:28, 25 January 2011 (UTC)