[pmwiki-users] Put pmwiki to root

Thomas Lederer celok at gmx.net
Mon Dec 19 19:46:40 CST 2005


Thanks for the quick answer,

H. Fox schrieb am 20.12.2005 2:39 Uhr:
> On 12/19/05, Thomas Lederer <celok at gmx.net> wrote:
>> i would like to put pmwiki to the root folder, eliminating any .php from
>> the URL. e.g.: www.domain.net/Main/Homepage
>>
>> Can this be done on a provider, where i do not have access to the apache
>> config? (i am aware, that most likely no other folder will be reachable)
> 
> It can be done with the following index.php script:
> 
>     <?php
>     chdir('mywikidirectory');
>     include('pmwiki.php');

that with the chdir directive was new to me. Thanks. I will try that. 
Anxious to see if all the other directories get parsed...

> You'll need to work out an adequate .htaccess file.  Here's a simple
> (possibly too much so) example.  It's three lines, so you'll need to
> "unwrap" the third line.
> 
>     RewriteEngine on
>     RewriteBase /
>     RewriteRule ^([A-Z].*)
> /path/to/mywikidirectory/index.php?pagename=$1 [L,qsappend]

I just checked if i the rewrite module was loaded. it is. So i will put 
your hints to a test soon.

> Hagan

Tom




More information about the pmwiki-users mailing list