Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-23-2008, 07:30 PM   #1
crockett
in a van by the river
 
crockett's Avatar
 
Industry Role:
Join Date: May 2003
Posts: 76,806
Link redirects..

I'm trying to set my network up so it's easier to later edit links. I'm not a server guru so I'm wondering if there is anything wrong with this method.

What I want to do is link to a specific url, then redirect that url to the paysite. This way any place I want to link to a specific program I can instead link to the one single url. This will make it easy to later edit or change the link if I need to at one place rather than hundreds of pages.

So I want to link to a url like this.. www.myurl.com/paysite1.php

That link would then redirect to using code like this.

<?php
ob_start();
echo "Test";
header("Location: http://www.paysiteurl.com");
ob_flush();
?>

I'm wondering if this would cause any problems? or if it could possiable get me banned in the SE's for redirects.
__________________
In November, you can vote for America's next president or its first dictator.
crockett is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2008, 07:34 PM   #2
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by crockett View Post
I'm trying to set my network up so it's easier to later edit links. I'm not a server guru so I'm wondering if there is anything wrong with this method.

<?php
ob_start();
echo "Test";
header("Location: http://www.paysiteurl.com");
ob_flush();
?>

I'm wondering if this would cause any problems? or if it could possiable get me banned in the SE's for redirects.
You don't want to do it that way. Nothing can be done before the header; the ob_start() only makes it put things in proper order. It's a 301 redirect, though, so it's safe.

You should do mod_rewrite, instead. Less server tax and more configurable; anything after .php ?code=foo will be passed to the paysite as so:

RewriteRule ^paysite1\.php(.*)$ http://www.paysite.com/$1 [R=301,L]
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2008, 07:36 PM   #3
A-Bomb
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: 1 of 3 holes
Posts: 680
why are you using the output buffer? Just use header location redirect line.

Yeah you will be penalized by the SE's for the redirect unless you cheat which isn't really worth it.

Definitely use mod_rewrite to change links
A-Bomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2008, 07:41 PM   #4
A-Bomb
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: 1 of 3 holes
Posts: 680
there is no penalty for a 301 redirect, but that indicates to the crawlers that this is a permanent redirect and they should drop the old link and now use the new link. Now whether or not they stick to that rule is up to the crawler.
A-Bomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2008, 07:43 PM   #5
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by A-Bomb View Post
there is no penalty for a 301 redirect, but that indicates to the crawlers that this is a permanent redirect and they should drop the old link and now use the new link. Now whether or not they stick to that rule is up to the crawler.
I've had pretty shitty luck with Google ever changing 301s to different sites for me after, oh, 5 years. Yahoo, as well. MSN, however, did.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2008, 07:44 PM   #6
u-Bob
there's no $$$ in porn
 
u-Bob's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
Quote:
Originally Posted by A-Bomb View Post
Just use header location redirect line.

Yeah you will be penalized by the SE's for the redirect unless you cheat which isn't really worth it.

Definitely use mod_rewrite to change links
From an SE point of view there's no difference between a redirect using php or a redirect using mod_rewrite.
u-Bob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2008, 07:46 PM   #7
u-Bob
there's no $$$ in porn
 
u-Bob's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
Quote:
Originally Posted by A-Bomb View Post
there is no penalty for a 301 redirect, but that indicates to the crawlers that this is a permanent redirect and they should drop the old link and now use the new link.
and the problem is....?
u-Bob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2008, 08:27 PM   #8
A-Bomb
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: 1 of 3 holes
Posts: 680
Nothing wrong with the redirect. The problem is that it bypasses what Crockett was originally trying to accomplish by using the redirects.
A-Bomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2008, 08:31 PM   #9
tabasco
Confirmed User
 
tabasco's Avatar
 
Industry Role:
Join Date: Jul 2006
Location: In a van down by the river
Posts: 2,624
I usually do a
Redirect /out/paysite/ http://www.example.com

in the .htaccess
__________________
"There is no other way to see a thing except to look at it" - fatfoo
tabasco is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-23-2008, 08:57 PM   #10
Diligent
Confirmed User
 
Diligent's Avatar
 
Join Date: Aug 2003
Location: Hoy Suecia, mañana Nirvana
Posts: 1,594
Setting "nofollow" on all Your redirecting links doesn't hurt in these scenarios:
Code:
<a href="http://www.yoursite.com/redirect3902/" rel="nofollow">JOIN DAMN IT!</a>
(Unless You NEED to "cast a vote" for the destination of course.... I only do that sometimes, and only for VERY special reasons.)
__________________
~¤~ MORE MONEY ~¤~ VOD? XoD! ~¤~
~¤~ ICQ# 9828 2461 ~¤~


Last edited by Diligent; 02-23-2008 at 09:00 PM..
Diligent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.