Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12404
Latest: azaratir
New This Month: 10
New This Week: 0
New Today: 0
Stats
Total Posts: 39925
Total Topics: 7028
Most Online Today: 109
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 42
Total: 43

Author Topic: 302 versus 301 redirect.  (Read 2744 times)

0 Members and 1 Guest are viewing this topic.

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
302 versus 301 redirect.
« on: February 18, 2013, 03:58:12 am »
This morning I have had a request from an interested advertiser who has observed that ads using Ad Seller Pro do indeed link to the clients site but go through http://www.amoc.org/forum/index.php?action=adpro;sa=c&id=10 , which shows as a 302 redirect in Redirect Checker

Apparently the 302 redirect removes the additional SEO benefit and authority passed from the link to the client's site and he has requested that I make the redirect 301 instead of 302.

He claims this would keep my tracking intact and still pass SEO authority to the client site.

Obviously this is quite a show-stopper to people wishing to drive traffic to their site via ads on mine so I need to change it. Trouble is I don't know where?
« Last Edit: February 18, 2013, 09:46:09 am by amwebby »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: 302 versus 301 redirect.
« Reply #1 on: February 18, 2013, 11:26:17 am »
Well you really don't get any seo benefit for redirection links most of the time.
Discussion on the redirect types
http://www.mattcutts.com/blog/seo-advice-discussing-302-redirects/

In the Sources/AdSeller.php Ad Seller Pro you can find
Code: [Select]
header("Location: $url");
Change to
Code: [Select]
header("HTTP/1.1 302 Found");
header("Location: $url");
« Last Edit: February 18, 2013, 12:02:58 pm by SMFHacks »
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: 302 versus 301 redirect.
« Reply #2 on: February 18, 2013, 11:39:52 am »
I read all those posts arguing that Google treats 302 and 301 the same but you tell these people who claim to be SEO experts that!

Not sure I follow your code. What does the "Found" do? Replace 302 with a direct link?

Edit: Can't find that in Sources/subs.php either?
« Last Edit: February 18, 2013, 11:45:27 am by amwebby »

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: 302 versus 301 redirect.
« Reply #3 on: February 18, 2013, 11:52:59 am »
Ah, found it in Sources/adseller.php

Changed it to

Code: [Select]
header("HTTP/1.1 301 Found");
        header("Location: $url");

And it worked!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: 302 versus 301 redirect.
« Reply #4 on: February 18, 2013, 12:03:21 pm »
Glad you found sorry stlil tired this morning.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
3262 Views
Last post December 26, 2007, 06:09:47 pm
by RWL
0 Replies
2164 Views
Last post May 21, 2009, 11:48:42 am
by CypheR
1 Replies
3084 Views
Last post February 11, 2013, 10:48:59 am
by SMFHacks
1 Replies
1861 Views
Last post April 26, 2017, 10:29:51 am
by nend
6 Replies
599 Views
Last post July 25, 2018, 03:03:24 pm
by shuban

+- Recent Topics

Update detect mobile mode PHP5 to PHP7 by Rock Lee
November 16, 2019, 07:18:13 pm

PHP error by davejo
November 12, 2019, 12:09:47 pm

Message Editor Pro Issues by SMFHacks
November 06, 2019, 09:58:33 pm

most popular categories doesnt work by fussilet
November 02, 2019, 02:51:42 pm

Change colors of Halloween theme by SMFHacks
October 24, 2019, 11:44:59 am

prettyurls - TroubleShooting.wiki by Rock Lee
October 10, 2019, 11:37:09 am

Some issues with adding and editing a listing by ajac63
October 07, 2019, 04:16:40 am

Problem update 1.1.21 to 2.0.15 by Rock Lee
October 06, 2019, 06:09:16 pm

[Mod]SMF 2.0.x PHP 7.2 Support by sah62
October 04, 2019, 01:46:00 pm

Ideas by shuban
October 03, 2019, 10:19:06 pm

Powered by EzPortal