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)
-   -   What script do you use to Redirect you traffic? (https://gfy.com/showthread.php?t=322924)

mrgica 07-07-2004 04:29 AM

What script do you use to Redirect you traffic?
 
?

johnbosh 07-07-2004 04:30 AM

http redirect

fris 07-07-2004 04:32 AM

mod_geoip mod_rewrite .htaccess

johnbosh 07-07-2004 04:37 AM

wharts a google clean way?

Hosting-Quote 07-07-2004 04:43 AM

PHP Code:

<?
header("location:http://ok.com");
?>

:Graucho

StarkReality 07-07-2004 10:16 AM

Quote:

Originally posted by johnbosh
wharts a google clean way?
Well, there are many ways, how safe they are long term is unpredictable:

1. Simple JS redirect (window.location.replace): Still works with google without penalty, regardless of all rumors, but isn't the best way long term.

2. "Eval" JS: Good way, you split up different parts of the simple redirect and put them together via eval function again, this way a redirect detection looking for typical strings can't catch you that easy.

3. External JS: Great in combo with 2., you put the JS code in a separate file and include it on the page. Another advantage: If you ever want to change the redirect, you only have to edit a single file, not hundreds of pages

The bad thing about all above: Once the surfer disables JS, the real page will show up, so make sure you doorways don't look like shit.

4. Flash: Yep, you can include a little flash file that contains nothing but a redirect...I wouldn't do it, too many users without flash out there still.

There are many more ways, but the above are popular and easy.

Couple of things Google does NOT like: Cloaking via CSS, 302 redirects, htaccess error redirects, parent window replacements, meta refresh

macho 07-07-2004 10:26 AM

HTML Refresh or Redirect



One of the most requested items we get is "How do I make an html redirect page".

Strangely enough this is one of the easiest things to accomplish, but then anything is easy when you know how to do it!

Here's the code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
hahahahahaha>
<title>Your Page Title</title>
hahahahahaha hahahahahahahahahaha="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD>
<BODY>
Optional page text here.
</BODY>
</HTML>

Code Description:

hahahahahaha hahahahahahahahahaha="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"> is the part that actually does the redirecting.

The number preceding the url (in this case zero) tells the browser the number of seconds to wait before redirecting to the new url.

You could set this to 5 and add some optional text to your page - something like:

"Please wait while we redirect you to our new site".

That's it! Just copy the code, save it (i.e. save as index.html) and your html redirect will work perfectly.

Mikel 07-07-2004 11:28 AM

I made a php script and I use a database of ip's to redirect some countries to particular sponsors.

In some case, browser language can also be good.


All times are GMT -7. The time now is 05:54 AM.

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