Mastering .Htaccess Level 1:
The .Htaccess is basically an Apache Server configuration file that helps to smartly control multiple aspects of web pages that are hosted or run on Apache. These multiple aspects include the hotlink protection, managing redirects and more.
All the customers enrolling in this course, will get the required knowledge on how to configure their .Htaccess file with different codes for added functionality.
As .Htaccess have a dot in the start, the dot basically makes the name of the file and it should not be mistaken for the extension. This filename looks by Apache when it is run. Anything or directive inside the .Htaccess sets different parameters to trigger or enable/disable different functions of Apache, when certain conditions are met.
For instance, the .Htaccess can be used to load custom error pages that shows up to the user when user didn’t find any desired page they are looking while browsing the website.
The .Htaccess file uses directives that are used to apply a set of commands in Apache’s configuration files. These commands are relatively short commands with the aim to modify the behavior of Apache. With the help of these directives, users can execute several codes at a time without requiring to access the core server configuration of Apache server commonly known as httpd.conf.
This file is enabled by default. The .Htaccess file is currently controlled by the AllowOverride Directive in the httpd.conf file. The .Htaccess gives system administrators more control over the website over their developers.
Mastering .Htaccess Outlines:
- Introduction to Mod Security
- Introduction and configuration of Hotlinking
- Setting up 301 permanent redirects
- Setting up 301 permanent redirectmatch
- Handling error documents
- Setting environment Var if proxied
- Http authorization rewrite
- Misc rewrites and Mod security
- Query_string debugging rewrites
- Headers and caching
- MODSEC Anti-spam for WordPress
- Passing parameter to CGI through HTTP headers
- Time based rewrites
- IP Blocking
- Country Blocking
- File and Directory Browsing blocking