From: John K. <jo...@ke...> - 2002-03-21 13:46:43
|
Hi, I've can set up my wiki to use URLs of the form: http://www.somehost.com/wiki/PageName but I'd like to lose the /wiki and just have; http://www.somehost.com/PageName How do I do it? John. -- --------------------------------------------------------- email: jo...@ke... phone: 07944 755613 web: www.kershaw.org AOL: johnkershaw --------------------------------------------------------- |
From: Patrik W. <pa...@bl...> - 2002-03-21 13:51:52
|
On Thu, 21 Mar 2002, John Kershaw wrote: > Hi, > > I've can set up my wiki to use URLs of the form: > > http://www.somehost.com/wiki/PageName > > but I'd like to lose the /wiki and just have; > > http://www.somehost.com/PageName > > How do I do it? I just did that yesterday, you have to use mod_rewrite: <VirtualHost 12.34.56.78> ServerName name.site.com DocumentRoot /html/name.site.com CustomLog logs/name.site.com.log combined #for wiki RewriteEngine on RewriteRule (^/themes.*) $1 [L] RewriteRule (^/.*\.css$) $1 [L] RewriteRule ^/(.*)$ /index.php?pagename=$1 [QSA,NC,L] </VirtualHost> However, this doesn't work with the form POST methods for the site, anybody knows how to solve this? I used version 1.3.3 for this. There are probably other ways of solving this as well. Is this documented somewhere? -- patrik_wallstrom->foodfight->pa...@bl...->+46-709580442 |
From: Steve W. <sw...@pa...> - 2002-03-22 23:29:19
|
This is also addressed in the FAQ: http://phpwiki.sourceforge.net/phpwiki/PrettyWiki On Thu, 21 Mar 2002, Patrik Wallstrom wrote: > On Thu, 21 Mar 2002, John Kershaw wrote: > > > Hi, > > > > I've can set up my wiki to use URLs of the form: > > > > http://www.somehost.com/wiki/PageName > > > > but I'd like to lose the /wiki and just have; > > > > http://www.somehost.com/PageName > > > > How do I do it? > > I just did that yesterday, you have to use mod_rewrite: > > <VirtualHost 12.34.56.78> > ServerName name.site.com > DocumentRoot /html/name.site.com > CustomLog logs/name.site.com.log combined > #for wiki > RewriteEngine on > RewriteRule (^/themes.*) $1 [L] > RewriteRule (^/.*\.css$) $1 [L] > RewriteRule ^/(.*)$ /index.php?pagename=$1 [QSA,NC,L] > </VirtualHost> > > However, this doesn't work with the form POST methods for the site, > anybody knows how to solve this? > > I used version 1.3.3 for this. > > There are probably other ways of solving this as well. Is this > documented somewhere? > > -- > patrik_wallstrom->foodfight->pa...@bl...->+46-709580442 > > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > > > > --- http://www.panix.com/~swain/ "Without music to decorate it, time is just a bunch of boring production deadlines or dates by which bills must be paid." -- Frank Zappa |
From: Patrik W. <pa...@bl...> - 2002-03-22 23:53:35
|
On Fri, 22 Mar 2002, Steve Wainstead wrote: > This is also addressed in the FAQ: > > http://phpwiki.sourceforge.net/phpwiki/PrettyWiki Yes, I added my mod_rewrite thing to it. The page however, does not describe why searching and deletion of pages stops to work. I haven't really debugged my solution yet, there might be some error with the last line: RewriteRule ^/(.*)$ /index.php?pagename=$1 [QSA,NC,L] It's this resulting page of a search that stops working: http://wiki.example.com/Titels%F6kningen?s=foobar&auto_redirect=1 (or PageFind, or any other) -- patrik_wallstrom->foodfight->pa...@bl...->+46-709580442 |
From: John K. <jo...@ke...> - 2002-03-26 09:46:41
|
At 6:27 pm -0500 22/3/02, Steve Wainstead wrote: >This is also addressed in the FAQ: > >http://phpwiki.sourceforge.net/phpwiki/PrettyWiki > >> On Thu, 21 Mar 2002, John Kershaw wrote: > > >> > Hi, >> > >> > I've can set up my wiki to use URLs of the form: >> > >> > http://www.somehost.com/wiki/PageName >> > >> > but I'd like to lose the /wiki and just have; >> > >> > http://www.somehost.com/PageName >> > > > > How do I do it? Okay, I got the path/to/pear, ln'ked /home/username/web/phpwiki/index.php to /home/username/web/wiki but when I go to domain/wiki I get: phpwiki/lib/FileFinder.php:82: Fatal[256]: DB.php: file not found phpwiki/lib/FileFinder.php:96: Warning[2]: stat failed for /usr/local/apache/php/bin/pear/locale/C/LC_MESSAGES/phpwiki.php (errno=20 - Not a directory) phpwiki/lib/FileFinder.php:96: Warning[2]: stat failed for /usr/local/apache/php/bin/pear/LC_MESSAGES/phpwiki.php (errno=20 - Not a directory) WikiFatalError phpwiki/lib/FileFinder.php:82: Fatal[256]: DB.php: file not found What am I doing wrong here? John. -- --------------------------------------------------------- email: jo...@ke... phone: 07944 755613 web: www.kershaw.org AOL: johnkershaw --------------------------------------------------------- |