Jump to content

Recommended Posts

Posted

 

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? :dance:

 

thanks,

!!blue

 

Posted (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 by TCH-Rob
Posted

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.

Posted (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 by !!blue
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...