943,635 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 3034
  • ASP RSS
May 3rd, 2006
0

404 and redirect in ASP?

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 1
Light Poster
I, Brian is offline Offline
47 posts
since Mar 2004
May 3rd, 2006
0

Re: 404 and redirect in ASP?

I don't understand your question.
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005
May 3rd, 2006
0

Re: 404 and redirect in ASP?

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

So:

ASP Syntax (Toggle Plain Text)
  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?
Reputation Points: 10
Solved Threads: 1
Light Poster
I, Brian is offline Offline
47 posts
since Mar 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Help
Next Thread in ASP Forum Timeline: Command text was not set for the command object.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC