GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Programmers, what is the simplest way to do this? (https://gfy.com/showthread.php?t=647914)

wedouglas 08-24-2006 09:16 AM

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?

SmokeyTheBear 08-24-2006 09:23 AM

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

wedouglas 08-24-2006 09:39 AM

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:thumbsup

Tempest 08-24-2006 11:12 AM

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 08-24-2006 11:12 AM

Double post...

mikeyddddd 08-24-2006 11:36 AM

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 :thumbsup
No more changing thousands of pages.

woj 08-24-2006 11:43 AM

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 :thumbsup

wedouglas 08-24-2006 11:51 AM

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.

Captain Canada 08-24-2006 12:05 PM

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>

fuzebox 08-24-2006 12:06 PM

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.

:thumbsup

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...

DamageX 08-24-2006 12:06 PM

Pay someone to do it. :)

Tempest 08-24-2006 12:45 PM

Quote:

Originally Posted by fuzebox
:thumbsup

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 08-24-2006 12:48 PM

not sure how this post happened...

Tempest 08-24-2006 12:50 PM

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

Webby 08-24-2006 12:59 PM

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.

:thumbsup

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 :thumbsup

wedouglas 08-24-2006 01:56 PM

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 08-24-2006 02:00 PM

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


All times are GMT -7. The time now is 06:37 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123