Popular htaccess tricks

.htaccess is used very common nowadays. To create the .htaccess file you can open notepad and save the file with name of .htaccess. So here are some popular htaccess tricks. If you want that if you type example.com in your url and it is changed to http://www.example .com then you can do this by writing the following code in .htaccess file:- RewriteCond %{HTTP_HOST} ^example\.com$ [NC] [...]