Mambo's default redirect is 302? Should I hack it to 301?
gford
12:09 pm on Apr 28, 2005 (gmt 0)
I saw the thread here talking about 302 and hijacking.
Well my sites use mambo and all redirect's to other peoples sites mambo uses 302.
Should this be changed to 301? Is 302 defnitely a NONO?
t2dman
10:46 am on May 8, 2005 (gmt 0)
don't I know you from somewhere? :)
Like I have done with vbulletin - definately change from 302 to 301 redirects. Google for 302 and you find all manner of probs. Best to steer totally clear of 302's
bull
11:21 am on May 8, 2005 (gmt 0)
Although there seems to be hope that the 302 issue is being resolved, it should be changed to 301 .
@t2dman ;)
g1smd
7:55 pm on May 8, 2005 (gmt 0)
Use a 301 redirect. Both Apache and Windows servers support this and it is very easy to set up.
gford
8:28 pm on May 8, 2005 (gmt 0)
Hi td2man, I sure see you around a lot :-p
thanks all, on my way to modify to 301 now
badass101
11:17 pm on May 8, 2005 (gmt 0)
gford, what's the best way to do this? Is it just one file to hack? Directions would be dead handy! ;-)
Thanks Craig
BillyS
1:53 am on May 9, 2005 (gmt 0)
bad and gford, we should keep in touch, I use Mambo too.
gford
12:29 pm on May 9, 2005 (gmt 0)
How to modify for mambo:
Open includes/mambo.php
Replace: header( "Location: $url" );
With: header("HTTP/1.1 301 Moved Permanently"); header("Location: $url");
That's it!
Glenn Ford
[edited by: Brett_Tabke at 1:28 pm (utc) on May 9, 2005] [edit reason] no sig urls please [/edit]