.htaccess doesn't work from subdirectory
Posted on 2011-09-13
I'd like to let people put www.mysite.com/trial into a browser and get directed to www.mysite.com/trial.php. That is, I don't want to force them to put in www.mysite.com/trial.php.
So I put a trial directory under the root directory with an index.html file and a .htaccess file that contains:
Redirect /index.html http://www.mysite.com/trial.php
But this doesn’t redirect. You go right into trial/index.html page.
I can do .htaccess redirects ok if I put the .htaccess file in the root directory of the site, so I'm thinking that .htaccess doesn't work in a subdirectory.
Is this the case?
Thanks for any info.