Solved

403;4 Redirect via an ASP file

Posted on 2006-07-20
2
302 Views
Last Modified: 2009-04-21
Here's my question, our server admin setup 403.4 error to run an ASP page in the root of the web directory.  Originally this had a Javascript in it that redirected the user to the given page.  To accomodate those that don't have Javascript on we need it to run an ASP script on the server side.

Problem is, when the 403.4 error throws the redirect.asp page, it doesn't run it like an ASP page.  Instead, it sends the whole thing like it's text or HTML (code brackets and everything) like it's not processing through the ASP engine?  How do we remedy this to make that page render as ASP and not text?

I tested with the following and instead of writing the word Test to a page it send the text verbatim.

<%
Response.Write("Test")
Response.End
%>
0
Comment
Question by:IUFITS
2 Comments
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 17150821
Make sure the directory where the file is located is set to allow Scripts.  If the directory has None set for execution priveleges this can happen.

Dave Dietz
0
 
LVL 26

Accepted Solution

by:
DireOrbAnt earned 500 total points
ID: 17151440
Another, very likely possibility is that the server admin picked file vs URL.
The steps are:
Right-click your Web site, Properties, Custom Errors, then select the 403.4 and click Edit.
In there, pick URL (not file) and then type the virtual path to the asp page like:
/MyErrorPages/My403.asp
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now