| How to redirect a Web Page |
|
|
| Web - Web Design |
Redirecting a Web PageWhat do you do when you change your residence or telephone number? Inform friends and family of the change; not to speak about the utility and credit card companies! The same applies to web pages. If you manage a personal website or a commercial one, managing links is a crucial task. The web page referenced by a link might have been moved to a different location or the page might have been updated and referenced by a new file name. In such cases users will be unable to reach the right page. If you had submitted your web page to search engines, the old information will still be out there on the web resulting in Page Not Found errors. Methods
<meta http-equiv="refresh" content="20;url=http://www.foo.com/newpage.htm"> In the above example 20 denotes the time in seconds before the page gets refreshed to the new location. The new location is denoted by the URL variable.
For example, let us assume that http://www.foo.com/install.htm has been moved to http://www.foo.com/content/install.htm. To redirect, enter the following line in your .htaccess Redirect /install.htm http://www.foo.com/content/install.htm (OR) redirectpermanent /install.htm http://www.foo.com/content/install.htm The second option makes the client know that the Redirect is permanent while the first option implies a temporary one. The permanent directive is preferred to preserve the existing search engine rankings for that page. The new URL is displayed in the browser and the visitors are unaware that the url has changed. As always, it is a good practice to backup the existing .htaccess before editing as a wrongly configured .htaccess may not even display the web pages. For related reading on this subject, refer to articles on Persistent Uniform Resource Locator or PURL
Set as favorite
Bookmark
Email This
Hits: 1577 Trackback(0)
Comments
(0)
|
| Last Updated on Saturday, 03 November 2007 10:00 |
Syndicate
now browsing!
We have 20 guests onlineTraining
| UPK TrainingUPK Developer Training Course Description Overview Understanding Developer menu and toolbar itemsSetting Developer PreferencesManaging FoldersManaging DocumentsCreating Views + Full Article |
| More on Training |
Main Menu
Featured
| Driving Licence Agencies in CanadaNew to Canada or moving within Canada. Below mentioned are links to Licensing agencies that will be of use. Ontario: Getting an Ontario Driver's Licence Alberta: Alberta Driver's Licence... + Full Article |
| More Featured Articles |



