Code Snippets »
Password Protect a Directory Using .htaccess
Protecting files on your website from unauthorized users can be very important. Even more important is the method by which you accomplish this task. You could use PHP to listen for login authorization information
Read More »30 Popular .htaccess code snippets (.Htaccess Code Snippets, Examples, Tips And Tricks)
“A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, that allows for decentralized management of web server configuration„. (FromWikipedia) The .htaccess method will only effect the folder in
Read More »Disable execution of PHP, Perl, Python, Java in .htaccess
Hello everyone! Sometimes you need to disable execution of scripts under certain folder using .htaccess. It’s useful if you have any security issue on server and want to stop execution of dynamic languages or
Read More »301 Redirects
Hello World! This is the best, the cleanest, simple and search-engine friendly way to redirect an URL to another URL. Redirect a single page As you see, first we write the keyword (Redirect), then
Read More »