From: Tara S. <te...@cl...> - 2003-11-27 20:36:57
|
Hi! hope somebody can help me -- this is starting to look tricky. I have two wikis running on one engine (I know the engine is old, but I changed quite a lot of markup in it and would rather stick to it if I could, rather than install a newer version and risk running into even more tricky problems ;-)): http://spirolattic.net/HomePage http://climbtothestars.org/pim/BookMarks My sysadmin installed suexec recently and upgraded php -- since then, it's all broken. I was using a rewrite rule for spirolattic: RewriteRule ^(.*)/? /wiki/$1 [L] wiki being a renamed index.php file sent with a php mimetype. Now, I have two problems: a) the wiki does not seem to accept http://spirolattic.net/wiki/RecentChanges as a wiki page anymore. It has to be of the form http://spirolattic.net/wiki/?RecentChanges to work b) this means I need to change my rewrite rule, but for some strange reason the following doesn't work: RewriteRule ^(.*)/? /wiki/?$1 [L] Point a) is valid for the second wiki too (pim): http://climbtothestars.org/pim/BookMarks does not work, whereas http://climbtothestars.org/pim/?BookMarks does. No rewriting here, pim being the main wiki file sent out as php mime-type. However, another interesting development: the internal links created by the wiki are weird: http://climbtothestars.org/pim/pim?pagename=MartialArtsLinks instead of http://climbtothestars.org/pim/MartialArtsLinks -- what could make the wiki start writing them that way all of a sudden? The links are "ok" in the spirolattic wiki. It seems to me the core of the problem concerns the wiki -- point (b) is not important if I manage to get the wiki to accept wiki/PageName uris again. Thanks for any help -- and let me know if you need more info. Steph aka Tara -- http://climbtothestars.org/ http://pompage.net/ http://spirolattic.net/ http://swissblogs.com/ |
From: Reini U. <ru...@x-...> - 2003-12-04 17:32:50
|
Tara, please try it without RewriteRule and set the VIRTUAL_PATH and USE_PATH_INFO instead. define('VIRTUAL_PATH', '/wiki'); define('USE_PATH_INFO', true); This works for me. Maybe /wiki has no php handler anymore. Maybe your admin set the default AllowOverride None. This works fine for me in my .htaccess, where wiki is a copy of index.php: <Files wiki> SetHandler application/x-httpd-php </Files> Tara Star schrieb: > Hi! > > hope somebody can help me -- this is starting to look tricky. > > I have two wikis running on one engine (I know the engine is old, but I > changed quite a lot of markup in it and would rather stick to it if I > could, rather than install a newer version and risk running into even > more tricky problems ;-)): > > http://spirolattic.net/HomePage > http://climbtothestars.org/pim/BookMarks > > My sysadmin installed suexec recently and upgraded php -- since then, > it's all broken. > > I was using a rewrite rule for spirolattic: > > RewriteRule ^(.*)/? /wiki/$1 [L] > > wiki being a renamed index.php file sent with a php mimetype. > > Now, I have two problems: > > a) the wiki does not seem to accept > http://spirolattic.net/wiki/RecentChanges as a wiki page anymore. It has > to be of the form http://spirolattic.net/wiki/?RecentChanges to work > > b) this means I need to change my rewrite rule, but for some strange > reason the following doesn't work: > RewriteRule ^(.*)/? /wiki/?$1 [L] > > Point a) is valid for the second wiki too (pim): > http://climbtothestars.org/pim/BookMarks does not work, whereas > http://climbtothestars.org/pim/?BookMarks does. No rewriting here, pim > being the main wiki file sent out as php mime-type. > > However, another interesting development: the internal links created by > the wiki are weird: > http://climbtothestars.org/pim/pim?pagename=MartialArtsLinks instead of > http://climbtothestars.org/pim/MartialArtsLinks -- what could make the > wiki start writing them that way all of a sudden? The links are "ok" in > the spirolattic wiki. > > It seems to me the core of the problem concerns the wiki -- point (b) is > not important if I manage to get the wiki to accept wiki/PageName uris > again. > > Thanks for any help -- and let me know if you need more info. > > Steph aka Tara > -- > http://climbtothestars.org/ > http://pompage.net/ > http://spirolattic.net/ > http://swissblogs.com/ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |