Definition of .htaccess Regex Characters & htaccess regular expression special characters # The # instructs the server to ignore the line. It is used for including comments. Each line of comments requires its own #. When including comments, it is good practice to use only letters, numbers, dashes, and underscores. This will help eliminate/avoid…
How to check whether mod_rewrite module is enabled/loaded or not in Apache There are lots of techniques to check this but below is very simple technique to check whether mod_rewrite module is enabled or not in you web server. 1) Create a file, Type <?php echo phpinfo(); ?> in that file and save…
How to force apache to parse html files as php? Below are some reasons why people like to parse HTML file as PHP. Search engines seem to more favor web pages that have .html extension instead of dynamic .php extensions. Converting an old static website into a dynamic website and worry about losing page…
The directory/folder password protection or authentication systems offered by the Apache Web Server are probably the most important use of .htaccess file.We can easily make a directory password protected (or multiple directory) of a website which require a username and password to access.Password are also encrypted using one of the best encryption methods available which…
A .htaccess (hypertext access) file is a configuration file for use on web servers running the Apache Web Server.It is a directory-level configuration file,as the name .htaccess reflects – allow per-directory access control, e.g requiring a password to access the content. When a .htaccess file is placed in a directory or folder, then the…