Redirecting to Another URL

After you have managed your own Web site for a while, you might decide you want to restructure its organization by renaming some pages, placing pages in folders, or hosting your site at a different location with a different URL. All that is fine, but what about the people who bookmarked the original page? They’ll be faced with an unfriendly Page Not Found message if you remove the old content entirely, and they won’t have any way of finding the page in its new location.

To help your past visitors find the new page, you can leave the old page in place and replace its text with a hyperlink that tells them where the new page is located. You already know how to create a hyperlink—that’s simple. But you can take it one step ...

Get HTML and XHTML Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.