Part 2 of some common .htaccess tricks to help save you some time!
Here are some more quick tricks to help your web development go quicker!
For more tips, read “.htaccess tricks Part 1″ !
Custom 404 Error Page
If the plain, white and boring default error page displayed by your server isn’t “fancy” enough, you can create your own “page not found” web design and point to it by using the code below:
ErrorDocument 404 /404.html
Moved or Renamed pages
If you have moved files or had to rename a page, you can direct visitors to it by using this 303 redirect:
Redirect 301 /oldfile.php http://websitename.com/newfile.php
(Warning: .htaccess is a very powerful configuration file. Even the slightest syntax error can result in severe malfunction to your server. You should make a back-up of everything, included any existing .htaccess files before you begin editing. It is also a good idea to check your website throughout your editing process to ensure everything is still functioning properly. If you notice an error, apply your backup immediately).
For more tips, read “.htaccess tricks Part 1″ !
or: Apache htaccess Ultimate Guide
Comprehensive guide to .htaccess
[...] For tips, check out “.htaccess tips part 2″ ! [...]