
What exactly is URL redirection? URL redirection is a World Wide Web method for making a website available via more than one URL. When a web browser tries to open a URL which has been redirecting, a new page with another URL is opened instead. This can be useful when you want to make your site available via more than one URL. For instance, you may have your business website available via a URL on a networking site, an e-zine, and a blog, but if you wanted to make it available via an URL on a real web page, you would simply redirect the visitors to that URL directly, thus breaking the redirect.
Some of the common use cases for URL redirection include allowing multiple email addresses to be viewed via a single URL, hiding the user name and password from view during logon, anonymous browsing, and allowing anonymous FTP access to a site. There are other methods too for redirections, including the forward slash, the? page escape code, the “click here” link, and URL-LVL traversal. URL redirections can occur within a HTML document or as part of the HTML code. HTML just happens to be the most common way to perform URL redirection. However, some have become savvy enough to use JavaScript for redirections as well.
Most of the web sites that make use of URL redirections are those which require URL pointing to a non-existent domain. This is because URLs are required in order to register a domain name. The reason behind this requirement is that web browsers do not recognize domain names. A domain name consists of one or more words, and when URL redirects are employed, the URL is interpreted as a domain name rather than a URL. Therefore, all these redirects have to start and end with the same words.
One very popular use case that is cited quite often when one comes to understand the difference between a URL redirect and a URL forwarding is when one needs to go from one website to another, but still has a URL. For example, consider this situation: you own an online store, and you want to transfer your customer information from your main website to a new ecommerce website that you own. In this case, you would make use of two methods of URL redirection. You could either use a regular URL, or you could also use a JavaScript URL redirection.
URL redirection using a regular URL, is done by putting the target website URL on one line, before the closing markup of the HTML page that you want to redirect. For example, if you want to redirect your customer information to the ecommerce website, you would put this on the webpage’s title. You would then put a colon after the target URL, making it the subject line. Then you would put the target URL on a new line after the closing tag of the HTML page. When your web browser looks at this URL, it will see the target URL, and it will know that the URL requested is the one that you want it to see.
On the other hand, URL redirection using a JavaScript function is more complex. In fact, not many web browsers support JavaScript, so this is not something that you can do automatically. However, the URL redirect can be changed into a JavaScript code by visiting a URL that uses JavaScript.
For example, if you go to Google, and put in the URL for the ecommerce website that you are going to make a purchase from, instead of typing in your URL like you normally would, you can instead put in the JavaScript code for the URL redirection. This will cause the Google page to be sent to your ecommerce affiliate marketing website instead of your home page. To make it even better, the JavaScript code will automatically redirect your user to the affiliate marketing website when they arrive at that site. There will be no change in the web page title, or in any other URL elements on the page. This is the power of URL redirection.
The major drawback with JavaScript is that it can slow down your web pages load speed. Because of this, there are many webmasters who choose to use URL redirection with JavaScript. Because of this, some search engine robots might not index your website, which can actually hurt your search engine rankings. For this reason, I recommend that whenever possible, you avoid using JavaScript for URL redirection. If you must, you should try to find a third-party company that will automatically redirect your user to the right destination.







