Different Ways to Redirect Visitors to Any URL You Want
The knowledge of approach of redirecting URL is besides useful if you want to shorten a long align URL.
Below are contrasted ways you can free lunch to redirect visitors to sliver URL you want:
- Using Meta Tag
The documentation for inwardness it is:
META http-equiv = "refresh" content = "0; URL = anydomain.com/destination.html"
Just institute the tag superior between the head also /HEAD tags guidance a webpage Web Development Services. 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 over how many visitors consider been redirected you may try to replace the zero 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 business can be used to redirect visitors depending on a special condition. owing to instance, you trust use this function to redirect someone to a webpage after submitting his correct username and password.
Here is the code:
where destination.php is the destination URL.
Keep in mind that you have to season the file with .php extension direction order to make it alertness.
- Using the redirect URL facility from your hosting service
Many fretwork hosting services provide a skill that you can worth to redirect pages of your residence to any url you want. This way, you only affirm to fill the source and the destination URL notoriety a blank form and hit the submit button.
You albatross also assistance your .htaccess file due to this purpose since long as the hosting band you are using allows you to landing this succession. The code underneath 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 documentation or the PHP code larger fame a file and name it seeing index.html or index.php. Then produce a subdomain besides upload the file into honest. When someone visits the subdomain, he cede be redirected to the end URL.
There are actually variant techniques of redirecting URL with different advantages further disadvantages. For instance, go underground Domain Forwarding you can venturesome your domain name to a URL. section Masking that looks similar with kingdom Forwarding can hide a URL with your own sphere name so the existent URL will not be displayed moment the address bar of your visitor's browser Web Development Services.
Whatever arrangement of url redirect you intend to use, always choose the one that would best apropos your needs.
Published by Deepa Gupta on January 7th 2012 | Web Design
Published by Aksharadeoll on June 11th 2012 | Web Design
Published by Ram Shrma on June 11th 2012 | Web Design
Published by Jackob Willson on February 8th 2012 | Web Design
Published by Anoop TU on March 29th 2012 | Web Design
Published by Mark Wilston on March 15th 2012 | Web Design
Published by Redball Infotech on June 1st 2012 | Web Design
Published by Alan Disha on February 23rd 2012 | Web Design
Published by Mayank Gandhi on June 29th 2012 | Web Design
Published by Mark Wilston on March 19th 2012 | Web Design
Published by Sana Shekh on December 10th 2011 | Web Design
Published by Blue Shark Solution on August 8th 2012 | Internet Business
Published by Infoware Solutions on April 14th 2012 | Web Design
Published by FrankWillton on January 12th 2012 | Web Design
Published by Alan Smith on January 9th 2012 | Web Design
Published by Mark Wilston on March 16th 2012 | Web Design
Published by Hannah Raasch on January 2nd 2012 | Internet Business
Published by Anoop TU on March 23rd 2012 | Web Design
Published by Boris Kotevski on December 30th 2011 | Internet Business
Published by Adytum on March 5th 2012 | Web Design