On Wed, 23 Mar 2005 13:10:32 -0800, Brion Vibber brion@pobox.com wrote:
Rick DeNatale wrote:
I've set up rewrite rules for the wiki directory, and It looks like the rewriting of a url like
http://www.mydomainname/wiki/Frodo to http://www.mydomainname/wiki/index.php/Frodo
That's a bad idea; covering the real wiki files with a virtual rewrite area usually leads to conflicts and loops. You should *always* keep the rewrite areas at separate locations from your real files (for instance we have /wiki and /w on Wikipedia).
Okay, although I don't have any loop. Just so I understand you are suggesting that since the wiki is installed at .../wiki I should use urls of the form .../w/PageTitle and rewrite them to .../wiki/index.php/PageTitle
is working but then the url itself isn't being properly processed. As I say, before I upgraded to 1.4.0 manual use of the resulting url used to work.
Can you describe what's going wrong? Is there an error message? Wrong page? Failure to load? Anything in the error logs?
I'm just getting a 404 Object Not Found http reply and the error log has an entry File does not exist: /var/www/html/wiki/index.php/Astronaut:John_Glenn
where Astronaut:John Glenn is the article title. http://www.denhaven2.homeip.net/wiki/index.php?Astronaut:John Glenn works fine.
Yesterday, I couldn't get the alternative of rewriting to
This would never work. Try: index.php?title=Frodo
Yeah, that was just a typo in my posting. I was rewriting it to ?title=...
Anyway, any ideas why the index.php/articlename form used to work in 1.3 and doesn't in 1.4?
Did you change your PHP installation from the apache 1.x module or apache2handler module to CGI, FastCGI, or apache2filter?
I haven't changed anything, Apache and php are both from the RH9 distro plus maintenance patches.
I noticed in the config/index.php script that php_sapi_name was being checked in the install, so I put a little php test file in my document root:
<?php $sapi_type = php_sapi_name(); if (substr($sapi_type, 0, 3) == 'cgi') { echo "You are using CGI PHP\n"; } else { echo "You are not using CGI PHP\n"; } ?>
Pointing my web browser to this (via Apache) reports:
sapi name is apache2filter
And this seems to turn off pretty URLS. Is this a difference between 1.3 and 1.4?
Is this something which I can change? I know very little about configuring PHP.
Can you confirm that you don't have some other problem?
I'm sure that I have many <G>
Have you made sure that you're not rewriting the skin files into wiki pages or some other problem?
No the RewriteConds seem to be working correctly according to the rewrite log at level 9