.htaccess : Forward any link to /index.htm
- by Kevin
Hey all,
I'd like to do the following:
If a user gets to a url or types it in, and it is along the lines of any the following:
/path/path/path
/path
/path/path/
I would like htaccess to forward them to that url + /index.htm before triggering a 404. Also, I would like to ignore this rule for certain paths. Here is what I was trying and wasn't having success:
RewriteCond %{REQUEST_URI} !^(admin)
RewriteCond %{REQUEST_URI} !^(node)
RewriteRule ^/(.*)/$ $1/index.htm [L]
Here is how the app is outlined. It is actually a subdirectory within an application as the site is in transition at the moment.
ParentApp/
/folder/
/folder/
/Drupal/
/(new application here)
/...
/...