WHAT IS .Htaccess File ?

agelinajohly

New member
Registered
Joined
Dec 1, 2012
Messages
3
Points
0
WHAT IS .Htaccess File ? and How Can Be Optimize it ? What Does It Do ? Why We Use it While Doing Onpage ?
 

Marc0

Well-known member
Registered
Joined
Jun 6, 2012
Messages
890
Points
28
The htaccess file is a configuration file which is used on Apache based web servers to control many features of the server. For example, you can make friendly urls, protect files, redirect urls...etc with htaccess.
We use it when we do on-page SEO like friendly urls for your websites, redirect url errors ...it's useful for websites at the moment.
 

s4s-uk

New member
Registered
Joined
Jun 4, 2014
Messages
12
Points
0
.htaccess is a configuration file for use on web servers running the Apache Web Server. When a .htaccess file is placed in a directory which is in turn loaded via the Apache Web Server, then the These .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer. Htaccess help in basic redirect functionality, for instance if a 404 file not found error occurs, or for more advanced functions such as content password protection or image hot link prevention.
 

TejasWebHosting

Member
Registered
Joined
Nov 9, 2014
Messages
15
Points
0
To add a little bit more understanding to this thread I think it is important to remember WHY htaccess files are used.

In shared environments hosts cannot (or at least shouldn't....) allow their users to make modifications to the httpd.conf. This httpd.conf is the webserver / Apache configuration file that contains very important information needed to make everyone's site load as they should.

Apache introduced these htaccess files as a way to allow users of accounts their own way of adding custom configurations. Whether it be redirects (most common), or setting up custom account level variables such as memory limits and PHP configurations - look no further than your local htaccess file!

Here is a link where you can read more about htaccess files:
https://httpd.apache.org/docs/2.2/howto/htaccess.html

Pay VERY close attention to the "How directives are applied" section. Very important. Also please refer to htaccess entries as directives to seem more ... professional ;)
 

DPrat

Active member
Registered
Joined
Dec 20, 2012
Messages
68
Points
0
.htaccess is ver important for SEO - Pratwords.com

WHAT IS .Htaccess File ? and How Can Be Optimize it ? What Does It Do ? Why We Use it While Doing Onpage ?
.htaccess file is an important part of every website. If configured wrongly, it can block spiders and visitors from viewing website.

As far as SEO is concerned, it can be used to GZip a website AND also used to activate CDN (content delivery network) like cloudflare. These two techniques help to enhance the loading speed of any website and thereby help to enhance SERPs.

I hope that helps
 

ElixantTechnology

Well-known member
Registered
Joined
Nov 26, 2014
Messages
281
Points
43
A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, that allows for decentralized management of web server configuration. They are placed inside the web tree, and are able to override a subset of the server's global configuration for the directory that they are in, and all sub-directories.

The original purpose of .htaccess—reflected in its name—was to allow per-directory access control, by for example requiring a password to access the content. Nowadays however, the .htaccess files can override many other configuration settings including content type and character set, CGI handlers, etc.
 
Older Threads
Replies
4
Views
2,800
Replies
0
Views
2,329
Replies
2
Views
3,116
Replies
23
Views
6,815
Newer Threads
Replies
9
Views
4,598
Replies
3
Views
3,441
Replies
8
Views
4,760

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top