Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4253
Latest: Ineedsmfhelp
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43242
Total Topics: 7516
Most Online Today: 126
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 117
Total: 117

Author Topic: 302 versus 301 redirect.  (Read 5250 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: 16428
    • 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: 16428
    • 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
3039 Views
Last post May 21, 2009, 11:48:42 am
by CypheR
1 Replies
5443 Views
Last post February 11, 2013, 10:48:59 am
by SMFHacks
1 Replies
3661 Views
Last post April 26, 2017, 10:29:51 am
by nend
6 Replies
2640 Views
Last post July 25, 2018, 03:03:24 pm
by shuban
1 Replies
6384 Views
Last post August 28, 2023, 03:12:57 pm
by SMFHacks

+- Recent Topics

is it possible to add support for odysee.com by SMFHacks
March 13, 2024, 10:53:28 pm

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

User Gallery Feature: move / bulk move images by SMFHacks
January 30, 2024, 05:48:25 pm

In the future it may be for smf 2.1.x? by smithloo
January 30, 2024, 12:55:34 am

Powered by EzPortal