|
ASP Redirection script
|
|
06-07-2006, 04:10 PM
Post: #1
|
|||
|
|||
|
ASP Redirection script
I am trying to put a redirection script on our webserver so that anyone coming from an internal address (10.0.XX.XX) gets send to one page and anyone coming from any other range gets sent to a different page.
here's what someone set up for me: Code: <%I have change the external ip of our server for safety reasons Now he said it should work, but for some reason I am getting this error: Quote:HTTP 500.100 - Internal Server Error - ASP error Any help is appreciated! - Techmonkey ================ Enterprise Business IT Support | SME IT Support | Home Support Available |
|||
|
06-07-2006, 04:52 PM
Post: #2
|
|||
|
|||
|
Um, for one you can't redirect to localhost! It might work on that server, but anyone else connecting to it will get redirected to THEIR localhost, not yours.
For two, he's written that in C#, and you seem to be trying to execute it as ASP. Rename it to .aspx, assuming your server handles .NET, and it should work. Give me liberty, or give me death - Patrick Henry 1775. Think for yourselves and let others enjoy the privilege to do so too - Evelyn Beatrice Hall 1906 I spread my wings, only to find that they are paper in the rain - Neko 2006 |
|||
|
06-07-2006, 05:21 PM
Post: #3
|
|||
|
|||
|
Well we're getting closer.....
Code: <%However internal users are getting to: http://xxxxxxxx - Techmonkey ================ Enterprise Business IT Support | SME IT Support | Home Support Available |
|||
|
06-07-2006, 06:56 PM
Post: #4
|
|||
|
|||
|
Have you tried simply renaming it with a .aspx extension?
*EDIT* Nevermind, that var kinda gives it away as not being the problem ![]() The error is fairly simple: it's a VB parsing error, but that is not VB syntax. As Shultz informs me, it is the javascript syntax of ASP. Check your IIS settings, make sure it expects this. Give me liberty, or give me death - Patrick Henry 1775. Think for yourselves and let others enjoy the privilege to do so too - Evelyn Beatrice Hall 1906 I spread my wings, only to find that they are paper in the rain - Neko 2006 |
|||
|
06-07-2006, 07:38 PM
Post: #5
|
|||
|
|||
|
Code: <%@ Language=JavaScript%>try that KiD resolves the issue with it trying to parse as VB by explicitly naming the language as JavaScript and also has the string() parsing method that was in my original code but not in yours for some reason. Check Out Car Hire in Leeds and don't forget to check out my personal blog Fearless Shultz |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help





