Different Ways To Redirect Visitors To Any URL You Want
URL redirection can be used for many purposes. Maybe you have just moved the content of a webpage to another webpage or domain and you want to redirect the frequent visitors of your website to the new webpage automatically. The knowledge of technique of redirecting URL is also useful if you want to shorten a long affiliate URL.
Below are several ways you can use to redirect visitors to any URL you want:
- Using Meta Tag The tag for doing it is:
META http-equiv = "refresh" content = "0; URL = anydomain.com/destination.html"
Just put the tag above between the HEAD and /HEAD tags in a webpage. That way, when someone visits the webpage that contains the tag, he will be redirected to destination.html automatically. Don't forget to include the "http" protocol which has been omitted.
In order to find out how many visitors have been redirected you may try to replace the destination URL with a tracking URL.
- Using PHP code In PHP, "Header" is a built-in function that is often used to accomplish this task. This function can be used to redirect visitors depending on a specific condition. For instance, you can use this function to redirect someone to a webpage after submitting his correct username and password.
Here is the code:
header("Location: anydomain.com/destination.php");
where destination.php is the destination URL.
Keep in mind that you have to save the file with .php extension in order to make it works.
- Using the redirect URL facility from your hosting service Many web hosting services provide a facility that you can use to redirect pages of your site to any url you want. This way, you only have to fill the source and the destination URL in a blank form and hit the submit button.
- .htaccess You can also use your .htaccess file for this purpose as long as the hosting company you are using allows you to access this file. The code below will redirect visitors from oldpage.html to newpage.html.
Redirect /directory/oldpage.html anydomain.com/directory/newpage.html
Just put the code in your .htaccess file.
Now, how if you want to display a URL without using .html or .php extension? First, put the Meta Tag or the PHP code above in a file and name it as index.html or index.php. Then create a subdomain and upload the file into it. When someone visits the subdomain, he will be redirected to the destination URL.
There are actually other techniques of redirecting URL with different advantages and disadvantages. For instance, with Domain Forwarding you can forward your domain name to a URL. Domain Masking that looks similar with Domain Forwarding can hide a URL with your own domain name so the real URL will not be displayed in the address bar of your visitor's browser.
Whatever technique of url redirect you intend to use, always choose the one that would best fit your needs.
Heris Yunora is the owner of http://www.unlimitedhostingplan.com, a website that contains information on shared hosting plan with unlimited database and other useful features.
Related Articles:
Making Money with Articles: The Importance of Picking a Catchy URL
One of the first things you will need to do, or possibly last if you need some inspiration, after you pick your niche topic is to pick a catchy URL. You want it to be one that will stand out and that will be easy to remember for those who plan on being return visitors.
Netfirms Adds Dot Asia (.asia) Domain Names to Product Line
Web Host Encourages Businesses to Protect their Brands by Registering .asia Domains
DOTME - the new Domain Darling - Flocking to Buy the New Dot ME Domains
The new extension .ME has launched onto the scene with record sales, grabbing the attention of high-profile domainers, industry executives, media companies, investors, and technocrats
Building Expired Domain Empire - How To Boost Your Traffic Using Expired Domains?
If you want to have a website, then you will need to buy a domain name. This is the address for your site. Users will need to type it to enter your website. Domain name is very important to let people know what type of business do you have just by hearing your domain name. Choose a wrong domain name, and nobody will come to see you.
Domain Names And Toll-free Numbers: A Profitable Link
A few months ago, I turned down a naming assignment from a company seeking a business name that would correlate with a domain and a toll-free number, both currently available. Impossible, I thought. Nope, not impossible if you know how to go about it, says Bill Quimby of TollFreeNumbers.com.
NameJet Announces Exclusive Deal to Sell Fabulous.com's Expired Domain Names
NameJet, a domain auction company, announces an exclusive relationship with Fabulous.com for selling the registrar's expired domain names. The partnership begins August 1.
New 'Hottest Girl' Internet Domains Available -- You Decide Who's The 'Hottest Girl' In Your State, City or Country
Now available for sale -- 207 "Hottest Girl In" and "The Hottest Girl In" domains including all 50 US states, 31 large US cities and 20 countries.
Some examples of available domains are: "HottestGirlInFlorida.com"," TheHottestGirlInHollywood.com", "HottestGirlInAmerica.com" and "TheHottestGirlInEurope.com".
If you market to women, these domains and 205 others just like them can be used to leverage any number of marketing promotions. They're a natural fit for companies involved in modeling, ladies clothing, swimwear, sportswear, cosmetics, etc.
Information on Domain Names
It's been two years since John started his online business. He is very much satisfied with his current web host whose services he acquired one year ago.
Buying Profitable Expired Domain Names - Part II
Buying an expired domain is an intricate and cumbersome process, when you do not know the fundamentals and techniques of expired domain name industry Buying a domain expired domain name is a busy activity, when you apply your mind and intelligence to choose and later buy the most profitable domain name
Paid URL Inclusion - How To Go About It
From the hundreds of search engines today, some are offering paid URL inclusion. What is paid URL inclusion and how does it differ from the regular free listing on the search engines. Paid URL inclusion means you have to pay for a particular amount annually for some search engines to index your web pages.
Brand New Chinese Character Domain Names Launched on the Internet Today - Many Other International Languages Also Available
Internet users can now register domain names using almost any language or text imaginable. Included are not only Chinese characters, but also Spanish, French, German, Russian and Japanese - to name but a few. The Internet has evolved and become a lot more universal.
The Growth of ru-Domains
The registry of ru-domains reports, that the number of domain names registered in Russia's national domain, the ru-domains, has increased 19.82% in the first half of 2004 to 256.
BluePrint Data makes its URL Filtering Database Available for Universal Threat Management (UTM) Services
BluePrint Data today announced that it is making its URL Filtering database available for Universal Threat Management (UTM) services. UTM appliances combine firewall, Virtual Private Network, antivirus, anti spam, content filtering, intrusion detection, and other security services on a single platform removing the need for multiple management stations and servers.
Hyphenated Domain Names And Similar Issues
Due to the explosive demand for domain names it is becoming increasingly difficult to get short meaningful web addresses. Chances are you are going to have to make some compromises when registering your domain name. If you manage to get a short domain name that is meaningful, easy to remember, sounds good, and simple to spell consider yourself very fortunate.
Social Site - Social Network. Social Domain Names at 200Best.com
200Best.com has the pleasure to announce new listings in the Social category. "My favorite Social domain name is SocialMagazine.com. It can be the ideal domain name to cover the Social Networks. SocialMagazine.com is the right domain name for this, and so much can be done with it."