Replace auto indexing? <or> Fix mod_rewrite
Posted: Sat Sep 23, 2006 7:31 pm
Is it possible to auto index folders with your own file?
Edit: If that isn't possible, could someone tell me what's wrong with this?
where..
DocumentRoot "/fileserver"
..and..
/fileserver
/fileserver/files
/fileserver/files/example
I want
http://localhost/example
to read from
http://localhost/files/example
But--- Only directories, no files.
Basically I want to make it appear as if the files directory doesn't exist... if that makes sense.
Edit: If that isn't possible, could someone tell me what's wrong with this?
Code: Select all
<Directory "/fileserver">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
<IfModule mod_rewrite>
RewriteEngine On
RewriteRule ^/fileserver/([^\.]+) /files/$1 [L]
</IfModule>
</Directory>DocumentRoot "/fileserver"
..and..
/fileserver
/fileserver/files
/fileserver/files/example
I want
http://localhost/example
to read from
http://localhost/files/example
But--- Only directories, no files.
Basically I want to make it appear as if the files directory doesn't exist... if that makes sense.