Thanks Dave. Some followup questions:
Quote:
Originally Posted by Dave
1. A child directory inherits the parent .htaccess rules and you can apply additional rules to the child .htaccess file as well.
|
Let's say (in theory) a child directory didn't need any additional rules compared to the parent directory.
Could the child directory run properly without any .htaccess file at all...or would the child directory need it's own .htaccess file & it would look exactly the same as the parent directory .htaccess file?
Quote:
Originally Posted by Dave
2. If the child directory has no .htaccess file then it will inherit the parent .htaccess file. However keep in mind that, depending on the rules that have been defined in the parent .htaccess file, it might not match in the child directory.
|
Let's say the parent directory had 7 rules in it's .htaccess file...and a website owner wanted the child directory to have 3 additional .htaccess rules. Would the child directory's .htaccess file ONLY need the 3 extra rules stated...or would the child directory need to have all 10 rules stated (7 from the parent directory & the 3 additional child directory rules)?
Quote:
Originally Posted by Dave
Whether or not you need a .htaccess file in all directories depends entirely on your configuration and needs.
|
I know that .htaccess files can do a lot of things...I believe one of the primary things .htaccess files can do is "allow" and "deny" certain traffic into a directory based on IP address/IP address range. Where the .htaccess file is sort of acting like a doorway into the directory. Is this sort of true?
The .htaccess files for my site contain a lot of "rewrite" rules as well...which I guess I need to learn more about in general...and how they are working specifically for my site.
Thanks