4 .htaccess Hack Every Blogger Must Know
Hyper-text Access or commonly know as .htaccess, is a simple yet powerful configuration file which is used to control the directories it is placed in. This file is used to control many aspects of the website and how works.
In this I will be explaining 4.htaccess Hack Every Blogger Must Know.
Implementing 301 Redirect
If you have changed the URL structure of your website either due to the change of your CMS or any other reason, you will need to implement 301 redirection from your old URL to the new one.
Syntax for 301 redirect is
Redirect 301 relative/path/to/oldurl/ http://www.domain.com/newurl/
The first URL should be a relative path to the old URL and the second one should be an absolute path to the new URL.
order deny, allow
deny from all
allow from xx.xx.xx.xx
Read more: 4 .htaccess Hack Every Blogger Must Know