Allow admin to choose 301 redirect instead of 302 to prevent 302 penalty

Created on 25 March 2010, about 15 years ago
Updated 19 September 2024, 7 months ago

hello,
it would be better to add a 301 header responce to prevent following:

http://en.wikipedia.org/wiki/302_Google_Jacking

Add "header( "HTTP/1.1 301 Moved Permanently" );"
near line 142:

....
if (isset($url)) {
    watchdog('ad', t('Clicked %type ad aid %aid hostid %hostid.', array('%type' => $adtype, '%aid' => $aid, '%hostid' => $hostid)));
    
    header( "HTTP/1.1 301 Moved Permanently" ); 
    header('Location: '. $url);
  }
....

thnx
wolfram

Feature request
Status

Closed: outdated

Version

2.0

Component

ad module

Created by

🇩🇪Germany johanneshahn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany lrwebks Porta Westfalica

    Drupal 6 is EOL and no longer supported. Closing this as outdated for that reason. Thanks for your contribution!

Production build 0.71.5 2024