Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
SportsGuy
Staff
Joined: Aug 30, 2002
# Posts: 3600
|
Posted: 2008-Aug-22 14:08
I tried just adding this to a global common.vbs file:
Response.Status = "301 Moved Permanently"
Response.AddHeader ("Location", "http://www.domain.org/"
Response.End
When I try to load a page, I get an error saying the redirect will never resolve. I figured the Response.Edn would've stopped it. It seemed to fundamentally work though as the address bar changed from http://save... to http://www.save... it just couldn't load the page.
Could you give me any insight as to why it's doing this, or how to fix? Thank you for any help you may have
Received via IM, just wanted to get more eyeballs on this for the sender.
|
 |
Dinkar
Staff
Joined: Aug 12, 2001
# Posts: 4391
|
Posted: 2008-Aug-22 16:43
I am not much familiar with common.vbs but I can guess....
The common.vbs file will be executed for http://save... and http://www.save..., both time.
So when you type http://save... it redirect you to http://www.save...
and when http://www.save... try to load, common.vbs gets executed again and it again redirect you to http://www.save...
So the redirect will never resolve.
Can you give some conditional statement like -
If request is for http://save... then ONLY server should redirect it to http://www.save...
This is the only solution, I guess.
|
 |
g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10438
|
Posted: 2008-Aug-22 19:53
That sounds like the answer, or something close to it.
The Live HTTP Headers extension for Mozilla Firefox will give you more clues.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|