Fastest Way to Redirect?

chad362wiley

Supreme Member
Joined
Dec 8, 2011
Messages
1,341
Reaction score
848
Hey all,

Right now I just use an HTML redirect to mask my link:

Code:
[COLOR=#800000][FONT=Consolas]<meta [/FONT][/COLOR][COLOR=#FF0000][FONT=Consolas]http-equiv[/FONT][/COLOR][COLOR=#000000][FONT=Consolas]=[/FONT][/COLOR][COLOR=#0000FF][FONT=Consolas]"refresh"[/FONT][/COLOR][COLOR=#FF0000][FONT=Consolas]content[/FONT][/COLOR][COLOR=#000000][FONT=Consolas]=[/FONT][/COLOR][COLOR=#0000FF][FONT=Consolas]"0; url=http://example.com/"[/FONT][/COLOR][COLOR=#800000][FONT=Consolas]>[/FONT][/COLOR]

Are there any faster ways of doing this? Whenever I load the 1st domain there is always a delay before redirecting to the second URL.

Thanks!

Chad
 
You can also add redirects in .htaccess file which should be little faster.
 
There are a couple other ways of redirecting.

1. .htaccess
2. PHP header redirect
3. Javascript redirect

I believe 1 or 2 would be faster than the meta redirect you are using now. I haven't ran any benchmarks so I don't have the numbers to back it up.
 
I always use .htaccess redirects. httpd.conf are a slight bit faster, but usually you won't have access to that file unless you have a dedicated server.
 
The fastest way for you to redirect a user from one domain to another would be to use .htaccess. If you redirect in PHP, it has to load the PHP module, process it, and return the headers. In HTML/Javascript you have to wait for the response. With .htaccess and whatever http server you're using it will send a redir header back nearly instantly without loading all of those extra resources.
 
Ended up going with .htaccess, very fast. Thanks guys.
 
Sup chad,
I also use php redirect. Since noone put the code, here it is.


Code:
<?php

header('Location: http://blackhatworld.com');

?>

then you just save as a .php file.
like.. yourwebsite.com/blackhatworld.php

I also like the pretty link plugin for wordpress. http://wordpress.org/plugins/pretty-link/
 
Back
Top