Miscellaneous Blog

Apache htaccess : Redirect Old URLs to new URLs after Rewrite URLs have been applied

.htaccess (Hypertext Access) files is a configuration file on Apache web server. It allows users to do many powerful features just by writing few lines. As of wikipedia, the most common usage of .htaccess files are follows:

  • Authorization, authentication
  • Customized error responses (ErrorDocument)
  • Rewriting URLs (mod_rewrite)
  • Cache Control
Syndicate content