Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: 404 Redirect Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tmoney
Newbie
Newbie


Joined: 08 March 2007
Location: Australia
Online Status: Offline
Posts: 9
Posted: 28 September 2008 at 8:08pm | IP Logged Quote tmoney

I would like to know if this is possible, and if so how to do it.

When ever someone tries to load a page that returns a 404 error, I would like to redirect them to a custom page.

Is this possible? I looked in the examples but couldnt see anything like it?

Thanks.
Back to Top View tmoney's Profile Search for other posts by tmoney Visit tmoney's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 29 September 2008 at 7:29am | IP Logged Quote Anton

It's easier to accomplish in IIS settings, but if you need ISAPI_Rewrite solution, here it is:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? custompage.asp [NC,R=301,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum