[pmwiki-users] Put pmwiki to root
    H. Fox 
    haganfox at users.sourceforge.net
       
    Mon Dec 19 19:39:54 CST 2005
    
    
  
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');
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]
Hagan
    
    
More information about the pmwiki-users
mailing list