Colorado Springs Web Design Logo Design
 
  • Home
  • Logo Design
  • Web Design
  • Graphic Design
  • Personal Art
  • Contact
  • BLOG
Posted by Brent in blog on 02 12th, 2011 | one response

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

Article Global Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google Yahoo Buzz StumbleUpon Eli Pets

 

One Response to “.htaccess tricks Part 2”

  1. .htaccess tricks part 1 | says:
    02/12/2011 at 3:07 PM

    [...] For tips, check out “.htaccess tips part 2″ ! [...]

Leave a Reply

Click here to cancel reply.

 

Blog Categories

Social Media

Facebook:
facebook.com/brentwhitedesign
Twitter:
twitter.com/brentwdesign

Valid Feed!

[Valid RSS]



I play music too!

Listen for FREE by going to facebook.com/
brentwhitemusic/




 
 
Copyright 2004-2010 Brent White