404 and redirect in ASP?

Reply

Join Date: Mar 2004
Posts: 47
Reputation: I, Brian is an unknown quantity at this point 
Solved Threads: 1
I, Brian's Avatar
I, Brian I, Brian is offline Offline
Light Poster

404 and redirect in ASP?

 
0
  #1
May 3rd, 2006
Hi there -

I need to redirect a site built in .php to a site built in .asp

Trouble is, that's simply going to create lots of 404's which aren't going to help anyone.

I'd like to be able to provide 404 headers and redirect to a specific page.

How would I do this in .asp?

Thanks for any replies.

- Brian
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: 404 and redirect in ASP?

 
0
  #2
May 3rd, 2006
I don't understand your question.
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 47
Reputation: I, Brian is an unknown quantity at this point 
Solved Threads: 1
I, Brian's Avatar
I, Brian I, Brian is offline Offline
Light Poster

Re: 404 and redirect in ASP?

 
0
  #3
May 3rd, 2006
On a *nix system, you simply add a couple of simple lines of code in a file at the site root named ".htaccess".

So:

  1. Error document 404 /

can tell the server to redirect a user to the website root folder - usually the site index page.

I figured there must be something similar for asp?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC