User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 402,473 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,981 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1551 | Replies: 2
Reply
Join Date: Mar 2004
Posts: 47
Reputation: I, Brian is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
I, Brian's Avatar
I, Brian I, Brian is offline Offline
Light Poster

Help 404 and redirect in ASP?

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Location: Dallas, TX
Posts: 481
Reputation: campkev is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: 404 and redirect in ASP?

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

Re: 404 and redirect in ASP?

  #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:

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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 4:20 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC