Understand how htaccess works

I need to understand how to manipulate the htaccess file for a website.

Hi experts,

we are currently hosting a site at one location for quite some time. we redesigned our site and going to a different hosting company. I know the htaccess file is a key element to keep are rating for SEO.
my questions are the following:
1- is the htaccess file created has a limitation in size?
2-is the htaccess file needs to reside on the old hosting company or the new one?
3- I also have quite a few domain name pointing to my old hosting company , how do I handle the htaccess file for each one of those domain?

I am sorry I have tried to educate myself on how Htaccess file works but I didn't find a good site that explains how this whole htaccess file works.
any help will appreciate.
Thanks
David
tavernyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
.htaccess is an extension of the Apache configuration.  It contains rules that could be included in the main Apache configuration file which means there are 1000's of possibilities.  

The rules in .htaccess apply only to the current directory tree so it only applies to the site that it is in.  It has no effect on any other site or remote site.  The biggest problem with .htaccess is that it must be read and applied every time a file in that directory tree is accessed.  You don't want it to be larger than necessary.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tavernyAuthor Commented:
Thanks Dave for clarifying some of it. would you know how to answer the rest of my question?
Thanks
David
0
Dave BaldwinFixer of ProblemsCommented:
3- I also have quite a few domain name pointing to my old hosting company , how do I handle the htaccess file for each one of those domain?
That is a DNS (nameserver) problem, not an .htaccess problem.
0
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

tavernyAuthor Commented:
what about #2?
0
Dave BaldwinFixer of ProblemsCommented:
As I said above...

The rules in .htaccess apply only to the current directory tree so it only applies to the site that it is in.  It has no effect on any other site or remote site.
0
tavernyAuthor Commented:
for those who are looking for the same information as I had:
1- the file limitation is recommended to be less than 20MB
2- the htaccess file needs to be on the hosting company that you will be pointing your domain name to (the new hosting)
3- the htaccess file will be red for every domain pointing to the new hosting company.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.