User talk:Peu: Difference between revisions

Jump to navigation Jump to search
477 bytes added ,  18 March 2007
(→‎C++: re)
Line 81: Line 81:
C++ doesn't work on Rosetta Code due to HTTP limitations.  I understand that it ''should'' be possible to fix it with .htacces, but I was never able to get any .htaccess rules to work.  Strictly speaking, the problem is with Apache.  Apache assumes that + is an encoding character for the space character, so it replaces the + with a space.  MediaWiki drops the trailing spaces in the requested page name, so C++ ends up pointing to C.  I upgraded to 1.9.1 from 1.6, expecting the problem to go away, but it didn't.  Eventually, I couldn't afford spending any more time trying to beat it into submission.  I could always try upgrading to 1.9.3, but since the problem primarily lies in Apache, I don't think it would help. --[[User:Short Circuit|Short Circuit]] 14:01, 16 March 2007 (PDT)
C++ doesn't work on Rosetta Code due to HTTP limitations.  I understand that it ''should'' be possible to fix it with .htacces, but I was never able to get any .htaccess rules to work.  Strictly speaking, the problem is with Apache.  Apache assumes that + is an encoding character for the space character, so it replaces the + with a space.  MediaWiki drops the trailing spaces in the requested page name, so C++ ends up pointing to C.  I upgraded to 1.9.1 from 1.6, expecting the problem to go away, but it didn't.  Eventually, I couldn't afford spending any more time trying to beat it into submission.  I could always try upgrading to 1.9.3, but since the problem primarily lies in Apache, I don't think it would help. --[[User:Short Circuit|Short Circuit]] 14:01, 16 March 2007 (PDT)
:Upgrading would not work, the problem with C++ has gone already with the upgrade to 1.8.2. I'm sure now that it's not a MediaWiki issue. --[[Wolf Peuker|Wolf]] | <small>[[User talk:Peu|talk]]</small> 03:42, 17 March 2007 (PDT)
:Upgrading would not work, the problem with C++ has gone already with the upgrade to 1.8.2. I'm sure now that it's not a MediaWiki issue. --[[Wolf Peuker|Wolf]] | <small>[[User talk:Peu|talk]]</small> 03:42, 17 March 2007 (PDT)
::Here's my .htaccess
<pre>RewriteEngine on
RewriteRule ^wiki/?Special:Blog$ http://blog.rosettacode.org/ [R=permanent,L]
RewriteRule ^sitemap.xml$ /rosettacode/w/sitemap.xml
# uncomment this rule if you want Apache to redirect from www.mysite.com/ to www.mysite.com/wiki/Main_Page
RewriteRule ^$ /wiki/Main_Page [R]
# do the rewrite
RewriteRule ^wiki/?(.*)$ /rosettacode/w/index.php?title=$1 [L,QSA]
</pre> --[[User:Short Circuit|Short Circuit]] 15:15, 18 March 2007 (PDT)

Navigation menu