1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

301 Redirect Question

Discussion in 'Search Engine Optimization' started by twalters84, Aug 10, 2009.

  1. #1
    Greetings,

    I had a problem with my site earlier. It has been resolved, but it got me thinking a little bit about 301 redirects.

    301 usually says this page has been moved permanently.

    What if somebody types some random URL on your domain and lands on a page that does not exist?

    Is there a way to create a "catch-all-page" that the user would goto automatically? For instance, if the page does not exist, transfer the user to the home page?

    Thanks for any information about this. I think having a script that does this would be much better than the error page the user sees.

    Sincerely,
    Travis Walters
     
    twalters84, Aug 10, 2009 IP
  2. Vedic Warrior

    Vedic Warrior Peon

    Messages:
    46
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just customize your 404 page through .htaccess file at the root.

    Just add these lines to .htaccess file
    ErrorDocument 404 /notfound.html 
    Code (markup):
    and then customize the notfound.html file, as for your liking.
     
    Last edited: Aug 10, 2009
    Vedic Warrior, Aug 10, 2009 IP