Redirect Url Snippets

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.

30 April, 2011   

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

PHP code example for redirecting from old URL to new URL

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.

29 December, 2011   

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

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

08 June, 2011   

Did you know that search engine crawlers think that '' and '' 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 '' to ' .

As an example, here we are redirecting to

24 October, 2016   

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

19 September, 2011   

If you leave a URL in the comment form of a WordPress blog, it will be automatically transformed into a hyperlink. If you want to implement the same functionality in your own website or web app, you can use the following code:

11 May, 2013   

ASP code example using a 301 redirect

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

You can use a url shortener with Twitter such as

20 March, 2013   

ASP code example for Moved Permanently 301 Redirect

The following are some useful functions to build URLs within a CGI script, for example to send a HTTP redirection header

23 December, 2015   

It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.

Assigns the contents of a "url" to the string variable "result".

11 October, 2018   

C++Code Snippets to Write a character using cout

19 February, 2013   

A small function to find the current URL of the page

02 June, 2012   

This code removes all special characters from the given URL and make it SEO friendly.