Evening all, having a problem and while dusting off the apache for dummies book, thought I would post this perhaps for a quicker response / fix.
This is what is in place right now to redirect for missing files;
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{SCRIPT_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^
www.*
RewriteRule (iws|jsp|jws|cfm|cfml|cfc|cfr|cfswf|sfc|html)$http://{HTTP_HOST}/
The problem is we wish to advertise a link to a folder on our site;
www.domain.com/folder
When we use that link it redirects to;
www.domain.com
I can link to
www.domain.com/folder/index.html and that works but when no index.html is there it's being rewritten and I am not sure why. When I commented the above out it did work fine, so I know it's that above, and from some old notes from an old employee, it seems they did that to catch missing files, but couldn't I just use a 404 error catch for that? Either way, can the above be updated as to not redirect on that folder, or an exception made, etc.
Thanks.