[pmwiki-users] It's really an Apache question but ....

Clemens Gruber cgruber at uni-osnabrueck.de
Mon Aug 7 18:50:05 CDT 2006


Marc Cooper wrote:

> said...
>  
>
>>I have, as advised in the documentation, created an index.php file in
>>my pmwiki 'home' directory which contains just the following:-
>>
>>    <?php include('pmwiki.php');
>>
>>However when I go to http://mysite/pmwiki I still get to see a
>>dirctory of the files there, apache doesn't auto-load the index.php
>>file.  How do I make index.php auto-load?
>>
>>(index.php works fine if I load it explicitly)
>>    
>>
>
>Somewhere in http.conf (adjust to taste):
>
><IfModule dir_module>
>    DirectoryIndex index.php index.htm index.html
></IfModule>
>
>(You might also want to switch off indexes by removing Indexes from the 
>Options line for that vhost (or userdir).)
>  
>

Hi Chris, if you don't have access to http.conf you can write this to a 
.htaccess file located in the same directory as pmwiki.php:

DirectoryIndex index.php index.html

or -if you don't need a index.php -

DirectoryIndex pmwiki.php

Clemens




More information about the pmwiki-users mailing list