What is .htaccess file? Is it compulsory for site or any security risk not to use a .htaccess file?

Posted by Pankaj Sharma
16
Dec 26, 2016
44 Views
2 people like it
avatar avatar
Comments (14)
avatar
Jeet Kaushik
10

Digital Marketer, Web Designer

Hi,

Htaccess files are hidden plain text files that are on the server to help control how your visitors interact with your website. The htaccess file is also used to block specific traffic from being able to view your website. If you look for your .htaccess file you'll see that there's no filename. The extension is .htaccess which tells the server what type of file it is. In cPanel you can see if you have a current .htaccess file using file manager but you will need to make sure you have select

Dec 26, 2016 Like it
avatar
Pankaj Sharma
16

Digital Marketing Professional

Thanks Alex................

Dec 26, 2016 1 Like Like it
avatar
ALEX K.
3

Author

Yes.. Pankaj Sir,
The .htaccess is a configuration file for use on web servers running the Apache Web Server software. When this file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software. 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. The

Dec 26, 2016 Like it
avatar
Pankaj Sharma
16

Digital Marketing Professional

Hi Alex,
Do you want to say that without .htaccess file a website will not work?

Dec 26, 2016 Like it
avatar
ALEX K.
3

Author

.htaccess file is required to run the web page & even this allow to redirect the site pages as well by using 301 code.

Dec 26, 2016 Like it
avatar
Alpfly Pvt. Ltd.
3

Domestic Flight Booking Services

.htaccess file is website's configuration file used for security and rewrite and redirection rule. This file is compulsory for any website.

Dec 26, 2016 Like it
avatar
Saveplus Coupons
6

coupons and discount vouchers

it is not compulsory

Dec 24, 2016 Like it
avatar
Pankaj Sharma
16

Digital Marketing Professional

Thanks a Lot @Marwal

Dec 23, 2016 1 Like Like it
avatar
KW Group
10

KW Group - for touching heights

No it is not compulsory for every site.

Dec 23, 2016 Like it
avatar
Huang Anginee
6

Health and medical

It is a system file. You can change your website with it.

Dec 23, 2016 Like it
avatar
Pankaj Sharma
16

Digital Marketing Professional

Hi all Thanks for your valuable suggestions.

I want to know that .htaccess file is compulsory for every site or not?

Dec 23, 2016 Like it
avatar
KW Group
10

KW Group - for touching heights

In other words we can say that .htacess file is the life of a website.

Dec 22, 2016 Like it
avatar
Dan White
8

Independent Internet Professional

It is a file used on Apache /linux servers (not windows servers) and is read by the apache software in order to load your website correctly... it can contain information suc as what php version to execute... how to allow robots to crawl your site and lots of other info... usually a site can function normally if you were to delete it... however having the Wrong information in or an out of date htaccess file can cause errors... you should not modify that file unless you have extensive php/html cod

Dec 22, 2016 Like it
avatar
Medilift Air Ambulan...
8

Medilift

.htaccess is a configuration file for use on web servers running the Apache Web Server software.

Dec 22, 2016 Like it
avatar
Please sign in to add comment.