What is .htaccess file?

The .htaccess file is a simple content file (in ASCII design). All in all, you can utilize, .htaccess files to change some arrangement orders of the Apache web server. In any case, .htaccess files can do more than just change a few settings of your web server as you will discover from the subjects recorded in this instructional exercise.

It would be ideal if you take note of that the name of the file is ".htaccess". It begins with a dot. As a matter of course on Unix/Linux frameworks files beginning with a dot are not openly obvious. On the off chance that you are running a Windows PC, it is likely that you will have inconveniences making such a file. So on the off chance that you have to make such a file, make it specifically on your web facilitating server and adjust it there, utilizing your FTP program or some online file director.

In the event that you put a .htaccess file in a subfolder, its directives will override the ones that you have in your site primary folder. That is whether you disable index posting universally for your site by setting the best possible line in the .htaccess file in your primary folder, you would then be able to empower registry posting just for a specific sub-organizer with another .htaccess file and the best possible order.

The .htaccess file can be put on any folder on your site. It has a recursive impact. This implies on the off chance that you put the .htaccess file in your web root (the principal organizer of your site) the orders and directives you put in the .htaccess file will have an impact on all sub-folders.

The commands and additionally directives in a .htaccess file are put one at a line.

Options-Indexes:

At the point when a line is remarked it has no impact.
When some individual visits your website the Apache web server is checking on the off chance that you have a .htaccess file some place in your web space beginning from the root/main folder and navigating every one of the organizers until the point that it achieves the asked for the file. On the off chance that a .htaccess file is discovered, its orders are connected to the present demand.

Know that the .htaccess file ought to be readable by the Apache server. In this way, please check with your host on the off chance that they require any extraordinary authorization set for .htaccess files. When all is said in done and 644 should be working fine.

  • .htaccess file, function of .htacess file
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can i change the timestamp in Horde,Roundcube,SquirrelMail?

This article describes how to change default time zone.Changing the time zoneOf course, webmail...

How to delete cron job in advanced mode?

OverviewAt the point when a cron job is never again required, you ought to erase it so the charge...

How to fix hostname error in cPanel?

How to fix hostname error in cPanelThe following article shows how to settle a hostname mistake...

How to restart services in cPanel?

How to restart services in cPanelThe following article states how to restart services in cPanel....

How to access .htaccess Apache file?

.htaccess access guide.htaccess is an extraordinary Apache file that advises your site how to...