New information: It appears that my Mediawiki crafts article links
containing characters like ()- with their escapecode equivilent. So a pretty
link to an article named "Brion(our hero)" appears /wiki/Brian%28our_hero%29
which makes a match to the rewriterule and gets rewritten/translated back to
the ugly format successfully.
But my MW doesn't replace characters .(period) or /(foreslash) in article
links. So the pretty link to an article like "Rob Church helps of 02/2006"
appears "/wiki/Rob_Church_helps_of_02/2006" which doesn't make a match to
my
rewriterule, and therefore doesn't get rewritten back to the ugly format.
I haven't tested all special characters to see which ones work or not...
facts update:
ISAPI_Rewrite created a new httpd.parse.error, but of 0 KB.
ISAPI_Rewrite.dll isapi filter is loaded in iis
IIS logfile entry is
2006-05-04 12:33:12 GET /wiki/Project_Meeting_of_02/22/06 -
172.18.96.118Mozilla/4.0(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET
+CLR+1.1.4322)
http://intranetsite.com:12843/wiki/Main_Page 404 0 3
This also happens for pages with a period like:
http://intranetsite.com:12843/wiki/version3.0_Guide
but rewrite works for the following pages:
/wiki/Snapshot_File_(version_2)
/wiki/Integration_-_Industry_News
thanks,
Brian
---------- Forwarded message ----------
From: Brian Carpenter <hopespoppa(a)gmail.com>
Date: May 3, 2006 10:37 AM
Subject: Translate/Rewrite beautified pretty ugly URLs-works except for
special characters in article titles
To: MediaWiki announcements and site admin list <mediawiki-l(a)wikimedia.org>
When I click on the link to
http://intranetsite.com:12843/wiki/Project_Meeting_of_02/22/06
I get the dreaded HTTP 404 Error
Using Windows2003,IIS and ISAPI Rewrite
physical location is
c:\wiki\MediaWiki\MediaWiki-1.6.3
LocalSettings.php statements:
- - - - - -
$wgScriptPath = "";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
## For more information on customizing the URLs please see:
##
http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url
## If using PHP as a CGI module, the ?title= style usually must be used.
$wgArticlePath = "/wiki/$1";
# $wgArticlePath = "$wgScript?title=$1";
- - - - - - - - -
httpd.ini content is:
# Translate beautified links of wiki
RewriteRule /wiki/([^/?.]+)(?:\?(.+))? /index.php\?title=$1?2&$2: [I,L]
RewriteRule /wiki/(?=Special)([\w:]+)/([\w:]+)
/index.php\?title=$1&target=$2 [I,L]
What the %?*$/1# is goingin on?
Appreciatively again,
Brian