learner
learner

Reputation: 2139

question about htaccess file

what is htaccess file? how to create and write that? what is the advantage of using htaccess file?

Upvotes: 1

Views: 130

Answers (3)

user7305435
user7305435

Reputation: 1

This is majorly used for configuration on server the generally things involve in usage are following. -(redirecting server to specific file) Redirect permanent /index.html (new path) For more you can refer to http://httpd.apache.org/docs/2.0/howto/htaccess.html#related

Upvotes: 0

trainer16
trainer16

Reputation: 21

.htaccess allows you to override Apache's (and other servers') main configuration file for a particular directory (and all its subdirectories). To use .htaccess you simply create a new file and name it ".htaccess" (yes, the name is very unusual because it actually consist of only a very long file extension), upload it to you server (if you want to affect your entire site than put is in your root folder), and finally add some directives.

If you wand to see what sort of things you can configure with .htaccess check out this very accessible tutorial: 5 most useful applications of the .htaccess file.

For something more comprehensive visit guide .htaccess.

Hope this helps

Upvotes: 2

ismail
ismail

Reputation: 47672

.htaccess files provide a way to make configuration changes on a per-directory basis. See the official Apache documentation for .htaccess files.

Upvotes: 2

Related Questions