.htaccess help

What do I have to do to my .htaccess file to send all of my 404 pages to one particular page?

I need to take down some pages but I don't want to waste that traffic.

RichB

Guru

Posts: 1121

Loc: Boston

3+ Months Ago

Here's an .htaccess generator that will produce the lines you need to add for you. There are also generators for things like ip blocking and preventing hotlinking available from the drop down menu.

http://htmlbasix.com/customerrorpages.shtml

Axe

Genius

Posts: 5738

Loc: Sub-level 28

3+ Months Ago

For a file not found forwarder..

ErrorDocument 404 whatever.html (to point to whatever.html in the directory they're currently in)

ErrorDocument 404 /whatever.html (to point to whatever.html in the main root directory of the domain - make sure your images used on that HTML page include a complete path from the root of your website)..

ErrorDocument 404 http://www.whatever.com/someerror.html (this will actually forward them to a particular URL in the event of an error)