!!blue Posted November 19, 2003 Posted November 19, 2003 I was updating my htaccess file and I can't remember which one is the master or even if there is one master. Do I make the changes only in the htaccess in the root folder? or make the changes to all the htaccess's in every folder? If a folder doesn't have one, do I put one in there? thanks, !!blue Quote
TCH-Rob Posted November 19, 2003 Posted November 19, 2003 (edited) Each folder can have its own .htaccess file. Not every folder needs to have one and depending on what you are updating would determine if you need to update more than one. The one in public_html is the one looked at most often as most of your traffic comes there before going to any sub folders, in most cases that is the one that you will be updating. Edited November 19, 2003 by TCH-Rob Quote
TCH-Rob Posted November 20, 2003 Posted November 20, 2003 By the way, my good friend Jack wanted to point out that .htaccess file in a folder or directory affects the subdirectories too if there is no .htaccess file. So if you want to make a site wide change, you can change the main .htaccess file. This is a true statement. In most cases the only one you will be updating is the main one. It all depends on what you are trying to accomplish. This is what I was trying to get at in my post but I know I can be cryptic in my writing sometimes. Quote
!!blue Posted November 20, 2003 Author Posted November 20, 2003 (edited) so... I can delete the .htaccess in my various subfolders (if they are there) so they call can work off of/refer to the main .htaccess in the public_html folder? Also, some of the .htaccess have this as their code: >Options All -Indexes I don't know what that means. Anyhow, I think I'll just have my main .htaccess in the root (public_html) and copy/paste the code into my three main folders (html portfolio, flash portfolio, weblog) .htaccess files and leave the others alone. blah. But let me know of anything else I should know. thanks again, !!blue ps: and no, you weren't *that* cryptic Thumbs Up Edited November 20, 2003 by !!blue Quote
TCH-Rob Posted November 20, 2003 Posted November 20, 2003 Blue, Before you get too involved you may want to look here; wsabstract.com/howto/htaccess.shtml freewebmasterhelp.com/tutorials/htaccess Back up anything you change or remove. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.