Redirect Visitors Snippets


16 June, 2012   

You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will allow the page to redirect and the visitors will not need to click a link or type in the new URL.

26 February, 2011   

This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.

If you're looking for a great way to enable your visitors to navigate your web site, this JavaScript drop down box with automatic redirect may be what you're looking for. This JavaScript code will enable your visitors to click on a drop down box to select the location on your web site in which they would like to navigate. Once they make their...

You should use err_headers_out() and not headers_out() when you want to send cookies in the REDIRECT response.

30 April, 2011   

This allows you to redirect the page using meta tag. Setting content to 0 for immediate redirect.

08 June, 2011   

Did you know that search engine crawlers think that 'www.yoursite.com' and 'yoursite.com' are two different websites!? We need to help the crawlers out and tell them that the two URLs are the same. We can do this with a 301 (moved permanently) redirect. The code below will redirect requests for 'yoursite.com' to 'www.yoursite.com .

24 October, 2016   

You should NOT use this if you are ACTUALLY using WordPress.

23 March, 2011   

Are you looking for an easy way to launch an alert box on mouse over? This script will do just that. This JavaScript provides an easy way to alert your visitors. However, please ensure you use this script cautiously, as you certainly don't want to irritate your visitors and cause them to leave your web site.

23 May, 2011   

Are you looking for an easy way to launch an alert box on mouse over? This script will do just that. This JavaScript provides an easy way to alert your visitors. However, please ensure you use this script cautiously, as you certainly don't want to irritate your visitors and cause them to leave your web site.

11 May, 2013   

ASP code example using a 301 redirect

20 March, 2013   

ASP code example to block Multiple IP Addresses

The JavaScript is just a function called redirect, and is requesting that a variable be passed to it.

29 December, 2011   

ASP code example to redirect the user to a different URL.

20 March, 2013   

ASP code example for Moved Permanently 301 Redirect

13 June, 2011   

Providing your visitors with a way to add your web site to their favorite places provides a great way to obtain repeat traffic. This is a great way to increase your overall traffic and sales, as they can visit your web site again and again. However, to obtain repeat traffic, you must continually update your content and give your visitors a...

How to display visitors IP in an Image using PHP

15 September, 2012   

This script shows how to redirect to a specific site.

PHP code example for redirecting from old URL to new URL

16 February, 2012   

ASP code to ban user based on their IP address

23 February, 2013   

This is a really generic Not-WWW to WWW configuration script.