isedeasy Posted July 15, 2010 Share Posted July 15, 2010 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? Any ideas on what is causing the different results? Link to comment https://forums.phpfreaks.com/topic/207830-links-from-database-not-working-correctly-with-header-redirect/ Share on other sites More sharing options...
unlishema.wolf Posted July 15, 2010 Share Posted July 15, 2010 First have you checked the topic on headers that is pinned? If you haven't check it first please. Link to comment https://forums.phpfreaks.com/topic/207830-links-from-database-not-working-correctly-with-header-redirect/#findComment-1086436 Share on other sites More sharing options...
isedeasy Posted July 15, 2010 Author Share Posted July 15, 2010 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. Link to comment https://forums.phpfreaks.com/topic/207830-links-from-database-not-working-correctly-with-header-redirect/#findComment-1086437 Share on other sites More sharing options...
isedeasy Posted July 15, 2010 Author Share Posted July 15, 2010 Figured it out, I was doing htmlentities before inserting into the database which changed the & into & Link to comment https://forums.phpfreaks.com/topic/207830-links-from-database-not-working-correctly-with-header-redirect/#findComment-1086696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.