Forum Moderators: phranque

Message Too Old, No Replies

Redirect gives 302 but would like it 301

         

bumpaw

3:52 am on Oct 25, 2005 (gmt 0)

10+ Year Member



I have some affiliate links shortened and tied to my domain. They are stored in MySQL and when they are clicked they are showing 302 in the server log. Is there away to make them yield a 301?

jdMorgan

2:00 pm on Oct 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What kind of code are you using to do these redirects? If it's mod_rewrite, post the relevant code snippet here. If it's PHP, then the PHP forum would be a good place to ask. We'll need to see the code to diagnose the problem.

Jim

bumpaw

6:25 pm on Oct 25, 2005 (gmt 0)

10+ Year Member



It's a PHP script called goredirect. Maybe you can move the post when you get time. I don't think email notification is working yet at least not for me.
Thanks,

bumpaw

8:27 pm on Oct 31, 2005 (gmt 0)

10+ Year Member



Just for the record I added:
header('HTTP/1.1 301 Moved Permanently');
and that was all it took.