PDA

View Full Version : What is .htaccess and how can it help me with Google?



oldeesee
2008-06-04, 06:12 PM
What is .htaccess and how can it help me with Google?

konna2008
2008-06-04, 06:35 PM
What you can do with your .htaccess totally depends on your site and server. For example if you have such URLs (www.domain.com?category=22&product=12 (http://www.domain.com?category=22&product=12)) you may turn them into www.domain.com/apparel/tshirts/yourproduct (http://www.domain.com/apparel/tshirts/yourproduct)
All translation could be done using the .htaccess file.

auryn
2011-03-03, 10:19 AM
The usage of .htaccess:


Authorization, authentication
.htaccess files are often used to specify the security restrictions for the particular directory, hence the filename "access". The .htaccess file is often accompanied by a .htpasswd file which stores valid usernames and their passwords.[3]
Rewriting URLs
Servers often use .htaccess to rewrite long, overly comprehensive URLs to shorter and more memorable ones.
Blocking
Use allow/deny to block users by IP address or domain. Also, use to block bad bots, rippers and referrers.
SSI
Enable server-side includes.
Directory listing
Control how the server will react when no specific web page is specified.
Customized error responses
Changing the page that is shown when a server-side error occurs, for example HTTP 404 Not Found.
MIME types
Instruct the server how to treat different varying file types.
Cache Control
.htaccess files allow a server to control caching by web browsers and proxies to reduce bandwidth usage, server load, and perceived lag.

.htaccess - Wikipedia, the free encyclopedia (http://en.wikipedia.org/wiki/Htaccess)