Jump to content

Links from database not working correctly with header redirect


isedeasy

Recommended Posts

I have some deeplink affiliate links in a database. these links work fine if I paste them into a browser but when they are called from:-

header("Location:{$foo}");

 

they lose the deep link and end up going to the homepage of the site that the deeplink is for.

 

I don't understand the difference between pasting the url into the browser and redirecting through a php header?  :confused:

 

Any ideas on what is causing the different results?

 

First have you checked the topic on headers that is pinned? If you haven't check it first please.

 

I am not getting a header error, I am not outputting anything to the browser as its a simple redirect page.

 

It works for deeplinks from a different program.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.