Put simply I want to use redirect only when on the Directory listing to the home page when in a sub-directory where the .htaccess used to be RewriteEngine off and the root directory points everything to a specific php script (Zend Framework setup).
The directory and .htaccess files are as follows
Code: Select all
Root
.htaccess
application directory
public directory
.htaccessCode: Select all
RewriteEngine on
RewriteBase /~user/application
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.phpCode: Select all
RewriteEngine off
Options -IndexesHopefully this makes sense and someone has come across the problem/solution before. If they can either give me a solution or point me in the right direction (and I don't mean the apache .htaccess documentation as I have looked at that already and come away more confused than ever
Thanks in advance