Using a .htaccess file to redirect or rewrite your URLs

On this website we will try to learn you everything there is to know about the .htaccess file (and ofcourse the .htpasswd file) and how to use these files. 

  • Make Search Engine Friendly URL's
  • Redirect old pages to new ones in a correct way
  • Force pages to https and vice versa
  • Secure a webpage with an username and password

Please help us to make this the ultimate htaccess information portal. On the Examples page you will find many code snippets which can help you improve your website. You can comment on each example and help our visitors. If you have any extra information, code snippets, examples or tips. Please feel free to use our contactform.