Why we use .htaccess file ?

seetru

New Member
what is the use of .htaccess file and its significance importance> Hello,

.htaccess is the files that has to be put in the document root directory.
Its has information like URL Rewriting and allowing access to the files.
Its useful to fix canonical url for SEO Purpose.


-----------------------------------------------------------------
[removed] .htaccess cal also be used to password protect some files in your server
and also to prevent hotlinking images and video. Personally, I use .htaccess file for 301 redirection and SEO URL purposes. Also, it could be used in preventing images directory listing.
smile.gif


all the best, one more thing

With .htaccess you can create your own custom 404 error pages. Quote: Originally Posted by lawrance777 Hello,

.htaccess is the files that has to be put in the document root directory.
Its has information like URL Rewriting and allowing access to the files.
Its useful to fix canonical url for SEO Purpose.


-----------------------------------------------------------------
[removed] Very good answer. Thanks hello jenny,
Personally i use .htaccess for 404 and url redirecting.
 
Back
Top