What are htaccess files
Published: August 14, 2014


.htaccess files, also known as hypertext access, are configuration files run by directories, allowing decentralized management and control of a host company's web server. Many assume hypertext access is only associated with creating custom error pages or password protected directories, however there is much more to .htaccess than that. Hypertext access has many other benefits such as automatic gzipping, improving caching, creating more affective URLs and precluding hot linking.

To break it down, .htaccess files are just simple ASCII files. This file extension can be created on any text editor and uploaded to websites using ftp (File Transfer Protocol) client. To start, hypertext access makes configuration changes on a per-directory basis, so therefore, run by directives. Directives are typically short, one lined commands used to modify the web server's behaviour. The purpose of directives in hypertext access is the ability to execute multiple directives at a time without the access of Apache's global configuration file (httpd.conf.) Apache's global configuration file stores information on the various functions of a web server which can be edited by adding/removing a number sign. So, instead of giving direct access, .htaccess files allow partial access through directories / subdirectories, allowing various people to specify and access their own Apache directories. This method could be very helpful for hosting companies using shared hosting environments with their customers. Keep in mind that some editors use wordwrap, which could throw in unnecessary characters and damage the .htaccess coding; prevent this by disabling this feature on your editor.

Although most text editors save hypertext access files as .htaccess, the default file extension can change depending on specific editing programs. For instance, the program, Notepad, automatically saves hypertext access as .htaccess.txt. In this case, you must remove .txt in order to continue editing your .htaccess file.

Also, it is very important to remember that although anything that can be accomplished in .htaccess files can be done in httpd.conf files, it does not work the other way around. This is because .htaccess files must be enabled in the httpd.conf files in order to be carried out. Once the power is enabled, httpd.conf is also limited to certain contexts by the .htaccess files, so system hosts/administrators have more control over the access they give.

.htaccess files are extremely useful and have been known to improve web servers in many ways, however there are two things one should consider before implementing hypertext access. Although it may only be a subtle change for most, .htaccess files can slow down a server by the process of AllowOverride. This process scans the directory and any above it until reaching the highest directory. Because .htaccess files affect the pages in its directory, servers can becomes slower when a page loads and AllowOverride is enforced. Security is also influenced when implementing hypertext access because .htaccess files are much more accessible than standard Apache configurations. Allowing others to make alterations on your .htaccess files gives them much more control over the server itself, so these users can do anything they want within certain limitations.

Customer Reviews:

Published: September 7, 2017
Rich Agnew and his crew at Computer Geek are great to work with. We switched hosting companies a couple of weeks ago and contacted Rich about transferring all our files to the new hosting company. The transfer was successful and smooth. I thought i...[Read More]
Chad Pugh
chad@nationofblue.com

 

Published: August 19, 2017
I had a band website that relied on an old media player that eventually became obsolete when support for it was dropped. I had designed it myself, and in doing so I had a very specific way I wanted our music page to look and work, and in searching ar...[Read More]
Donald Jefferes
jzerony@aol.com

 

Published: June 19, 2017
"The professionalism and expertise which I experienced from Rich Agnew at The Computer Geek is streets ahead of any other service provider. When we were hit with a virus we were at our wits end but within minutes they had sorted us out. We were ama...[Read More]
Toni Gomes
ceo@bpw-jhbsa.co.za

 

Published: June 13, 2017
"Excellent service, very professional to work with. My company's website had become infected with malware. The website is used to direct sales, but equally as import it is used as the portal for the support ticketing system. The site needed to be ...[Read More]
Jake Baker
jbaker@comcomsystems.com

 

Published: April 18, 2017
Geeks make it look easy. After hiring the Computer Geeks for a lot of minor site work, I decided to follow Rich's advice and start from scratch. Rich & Co. designed and built a new site for my business, quickly and efficiently, with sleek, profession...[Read More]
Alan Perlman
alanperlmanphd@gmail.com

 

Published: April 17, 2017
Your alacrity and client service have been evident from the moment you popped up in a chat screen during my visit to your website. I also deeply appreciate your competence and kindness. Your services are a valuable asset to us and I am grateful for y...[Read More]
Judy Tashbook Safern
jsafern@shearith.org

 

Published: March 16, 2017
Rich and his team at Computer Geek are awesome! They fixed my virus infected website extremely fast (just a day!) and everything turned out great. I will definitely use them again the next time I'm in need of tech help. Thanks guys!...[Read More]
Kate Marcin
katemarcin@gmail.com

 

Published: January 14, 2017
Searching for a competent English-speaking webmaster can be a daunting task, especially if searching the Internet without a personal recommendation from a friend. I discovered Computer Geek's website, liked what I read, and contacted Rich. He promptl...[Read More]
Rand Winburn
randw@iconbusters.com

 

Published: December 22, 2016
Excellent communication and quick to get the job done....[Read More]
Adam Roberts
adamrobertswork@gmail.com

 

Published: July 27, 2016
BEST SERVICE I HAVE EVER EXPERIENCED !!! Called Rich one morning to have my website fixed since it was hacked . I must say he really knows what he is doing in no time at all my site was back on line all malware removed and my web site updated and pro...[Read More]
Eric Bjorkgren
preservewax@gmail.com

 

[Read More Testimonials Here]

Latest Website Related Articles

What is Cross Site Scripting?

Published: September 13, 2017
Cross site scripting (XSS) is when criminal hackers use weakness's in a website application to inject malicious code into that website which causes the website to behave in a way it was not designed to do. The website weakness which allows ...[Read More]

 

Are Your WordPress Plug-ins Updated?

Published: May 7, 2017
The hackers normally get in through weakness's in your plug-ins. You must keep all your Word Press Plug-ins updated at all times. These updates will fix holes that allow the hackers to access your site through what's called a back door. This...[Read More]

 


Here are some links to related topics:
 new webmaster,   php coders,   joomla site hacked,   xcart hacked,   verio hacked,   pure host hacked,  


Site Secured By The Website Guardian
What are htaccess files | Computer Geek 5 out of 5 based on 103 user ratings.
What are htaccess files | Computer Geek
What are htaccess files - .htaccess files, also known as hypertext access, are configuration files run by directories, allowing decentralized management an . . .
What are htaccess files | Computer Geek
Date Published: 10/09/2016
What are htaccess files - .htaccess files, also known as hypertext access, are configuration files run by directories, allowing decentralized management an . . .
5 / 5 stars