Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- redirect to 404 but rewrite url to homepage url


getoffmyisland - 2:45 pm on Oct 26, 2010 (gmt 0)


Hey, sorry bothering if this is an easy fix, but i can't find the solution anywhere.

Firstly i want all 404 error pages, eg. pages that doesn't exist on the website to display a custom error page, that's easy, you just put this into .htaccess:

ErrorDocument 404 /notfound.html

this will now display the custom page, notfound.html whenever a url is entered that doesn't exist on the server.

all good, but it still displays the wrongly inserted url in the address bar.

How do you redirect that wrongly entered (404, not found) url to the homepage ?


Thread source:: http://www.webmasterworld.com/apache/4222203.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com