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
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 08-24-2006, 09:16 AM   #1
wedouglas
So Fucking Banned
 
Join Date: Aug 2004
Location: Dearborn, MI
Posts: 5,921
Programmers, what is the simplest way to do this?

I don't want out going links. I want something like site.com/out/site/ to actually go to the outgoing site.

What is the simplest method?
wedouglas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 09:23 AM   #2
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
htaccess

try this

save this as .htaccess upload it to an empty folder

rewriteengine on
rewriterule ^(.*)\.asp$ http://$1 [nc]


then you would call it like this http://yoursite.com/folder/google.com.asp and it would go to google
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 09:39 AM   #3
wedouglas
So Fucking Banned
 
Join Date: Aug 2004
Location: Dearborn, MI
Posts: 5,921
Quote:
Originally Posted by SmokeyTheBear
htaccess

try this

save this as .htaccess upload it to an empty folder

rewriteengine on
rewriterule ^(.*)\.asp$ http://$1 [nc]


then you would call it like this http://yoursite.com/folder/google.com.asp and it would go to google
Thanks, I'll give it a go when I get back
wedouglas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 11:12 AM   #4
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
You mean something like this?

http://awmstuff.com/go/?trafficcashgold
http://awmstuff.com/go/?bangbrosonline

Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 11:12 AM   #5
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
Double post...
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 11:36 AM   #6
mikeyddddd
Viva la vulva!
 
mikeyddddd's Avatar
 
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
Quote:
Originally Posted by Tempest
You mean something like this?

http://awmstuff.com/go/?trafficcashgold
http://awmstuff.com/go/?bangbrosonline

Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.
Exactamundo
No more changing thousands of pages.
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 11:43 AM   #7
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
Quote:
Originally Posted by Tempest
You mean something like this?

http://awmstuff.com/go/?trafficcashgold
http://awmstuff.com/go/?bangbrosonline

Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.
and if the sponsor happens to go under, you can redirect all his traffic elsewhere within minutes
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 11:51 AM   #8
wedouglas
So Fucking Banned
 
Join Date: Aug 2004
Location: Dearborn, MI
Posts: 5,921
Quote:
Originally Posted by Tempest
You mean something like this?

http://awmstuff.com/go/?trafficcashgold
http://awmstuff.com/go/?bangbrosonline

Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.
Would you mind posting the contents of said file? With just like one example url left in. I am clueless in php.
wedouglas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 12:05 PM   #9
Captain Canada
Confirmed User
 
Join Date: Jun 2002
Posts: 469
You could also put in to each folder a straight index.html page with a redirect such as:

<html><head><meta http-equiv="refresh" content="0;URL=http://www.google.com" /></head><body></body></html>
Captain Canada is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 12:06 PM   #10
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
Quote:
Originally Posted by Tempest
You mean something like this?

http://awmstuff.com/go/?trafficcashgold
http://awmstuff.com/go/?bangbrosonline

Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.


I do the same thing but it's all mysql based... Before I got StatsRemote it was nice to grab a quick summary of all my outclicks for the day...
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 12:06 PM   #11
DamageX
Marketing & Strategy
 
DamageX's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
Pay someone to do it.
__________________
Whitehat is for chumps

If you don't do it, somebody else will - true story!
DamageX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 12:45 PM   #12
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
Quote:
Originally Posted by fuzebox


I do the same thing but it's all mysql based... Before I got StatsRemote it was nice to grab a quick summary of all my outclicks for the day...
Yeah.. I'm moving all my links to a mysql database as well... But I don't like relying on it so instead I'll be having it generate my datafiles from that as a source... clicks will be saved in text files and added to the mysql database every few minutes.
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 12:48 PM   #13
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
not sure how this post happened...

Last edited by Tempest; 08-24-2006 at 12:51 PM..
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 12:50 PM   #14
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
Quote:
Originally Posted by wedouglas
Would you mind posting the contents of said file? With just like one example url left in. I am clueless in php.
Well mine is a little complicated as I go to random POTD sites etc. if there's an invalid site name and I also insert campaign codes on the fly..

but a simple version would be something like this

Code:
<?php
	$q=strtolower(trim($_SERVER["QUERY_STRING"]));
	$url["adultpaymaster"]="http://www.adultpaymaster.com/";
	$url["nastydollars"]="http://www.nastydollars.com/";
	if($url[$q] != ""){
		@header("Location: $url[$q]");
		exit;
	}
	@header("Location: http://somedeafulturl.com/");
?>
name it index.php.. drop it on some directory like /go2/

call them like /go2/?nastydollars
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 12:59 PM   #15
Webby
Too lazy to set a custom title
 
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
Quote:
Originally Posted by Tempest
You mean something like this?

http://awmstuff.com/go/?trafficcashgold
http://awmstuff.com/go/?bangbrosonline

Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.


Same here Tempest - everything is logged on a per server basis and redirected. Another extension to that - tho does need planning and work - is that all "content" re promo is served centrally from each sever to all domains on that server - basically "web blocks"/creatives which can be anything - 1000's of em

Advantages being, easy new site development (just write the "shell" content), any sponsor can be removed for all domains in mins - or more added etc.

BTW.. Nice constuctive thread this - makes a change from crap
__________________
XXX TLD's - Another mosquito to swat.
Webby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 01:56 PM   #16
wedouglas
So Fucking Banned
 
Join Date: Aug 2004
Location: Dearborn, MI
Posts: 5,921
Quote:
Originally Posted by Tempest
Well mine is a little complicated as I go to random POTD sites etc. if there's an invalid site name and I also insert campaign codes on the fly..

but a simple version would be something like this

Code:
<?php
	$q=strtolower(trim($_SERVER["QUERY_STRING"]));
	$url["adultpaymaster"]="http://www.adultpaymaster.com/";
	$url["nastydollars"]="http://www.nastydollars.com/";
	if($url[$q] != ""){
		@header("Location: $url[$q]");
		exit;
	}
	@header("Location: http://somedeafulturl.com/");
?>
name it index.php.. drop it on some directory like /go2/

call them like /go2/?nastydollars
Can I use this without disabling the back button? perhaps open in a new window
wedouglas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 02:00 PM   #17
wedouglas
So Fucking Banned
 
Join Date: Aug 2004
Location: Dearborn, MI
Posts: 5,921
Quote:
Originally Posted by wedouglas
Can I use this without disabling the back button? perhaps open in a new window
n/m it works. not sure why back button wasnt working
wedouglas 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



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.