The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Caching of Location headers
Ok, I'm having this really annoying problem with this program I'm writing.
It's a link of sites. I have a page go/index.php that takes the $QUERY_STRING as the site url to go to, increments the hit count in a database, and then forwards (using header("Location: $url")) the user to the url. Sound simple enough? I'm getting this really annoying problem now with my browser. At first, I had this running fine on one server, but I hadn't setup the MySQL yet, so I was just redirecting back to the links page with my location headers (I was even doing a relative URL ). I was linking to go?http://www.site.com. Now, I'm having trouble after I've moved over the program to new server with the MySQL. Whenever I click on one of the links, it sends me back to the old links page! It doesn't even appear to download the right page. I tried clearing my history, temp internet files, but all to no avail (I'm in IE 6). It did, however, do everything right when I linked to go/?http://www.site.com. It's like it's identified that url in a link to redirect to one page and doesn't even bother checking for alternatives. This problem even occurs when I link to a page not even used on the first version - go?http://random.site.blah.com . Anyone have a clue what's going on? |
#2
|
||||
|
||||
Ok, now it appears that anyone who goes to the page gets redirected to the wrong place! This is getting really wierd - anyone have a clue?
|
#3
|
|||
|
|||
has to be something that is hardcoded into the mysql or some fixed code that you're not changing... at least it seems that way by the way you're describing it... regards...
g-force2k2 |
#4
|
||||
|
||||
Quote:
I should note that I plan on removing the or die() bit for and making the query @, so that it'll just send you back to the links page if there is any trouble. |
#5
|
||||
|
||||
I figured it out!
The server must be setup to redirect all folder lookups without the following slash to mtgnews.com/ whatever, not to server I'm working on right now (what will soon be the mtgnews.com server). Ah... I feel much better knowing what's wrong . Sorry for bothering everyone . |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|