Apache

How to remove Apache logs & errors

Apache

Use the following command to remove all the files and directories inside your apache2 log. You may want to reload it after deleting.

 

.htaccess Time Cheatsheet

Apache

Found this super cool cheatsheet with the times you can set in your .htaccess file with their convertions.

 

How to display / hide Errors in PHP with htaccess

PHP

You can turn on or off the PHP errors using the htaccess file.

 

How to block folder from listing

Apache

Add this line to the .htaccess file inside the folder you want to block and beyond.

 

How to Redirect non-www domain to www

Apache

How to redirect a non-www domain to a www domain. Edit or create your .htaccess and add the 301 redirect rules.

 

Moved Permanently Redirect SEO

Apache

How to add a 301 Moved Permanently redirect without affecting your SEO.