jrwrestling Posted May 28, 2004 Share Posted May 28, 2004 Ok, I want to redirect all of the affiliate visits to index.php my questions are: How can I do this without it constantly reloading? I use this code: but it loads every time and keeps redirecting: <?php // redirect to Hosting page header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.jrwrestling.com/"); ?> where can I place this so it wont load more than once? Link to comment Share on other sites More sharing options...
Guest Posted May 28, 2004 Share Posted May 28, 2004 <?php // redirect to Hosting page header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.jrwrestling.com/"); exit; ?> this should work, as you are not closing it out in your statement Link to comment Share on other sites More sharing options...
jrwrestling Posted May 28, 2004 Author Share Posted May 28, 2004 Same thing- it still redirects because it is still called everytime a catagory is loaded. Link to comment Share on other sites More sharing options...
ryanf Posted May 28, 2004 Share Posted May 28, 2004 where are you putting it? Is it it's own file? If I was crafty, this would be a funny signature. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.