Forum Moderators: phranque

Message Too Old, No Replies

.htaccess

.htaccess file in the subfolder

         

Shaheer

7:06 am on Apr 17, 2009 (gmt 0)

10+ Year Member



.htaccess file in the root directory is working perfectly.but not working in subdirectory.
What may be the reason?

Samizdata

8:41 am on Apr 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The likely reason is that the code is wrong.

The root .htaccess file (if present) applies to all sub-directories, and any .htaccess in the sub-directories is generally used to override or add to rules already in place - but everything depends on the specifics.

Perhaps you could post a snippet of the code that is "not working" here, explaining what you expect it to do and what it actually does (i.e. how it fails). Change any domains in the code to "example.com" when posting here.

Welcome to WebmasterWorld.

...