11/02/10 When a Web page is moved - can use a page still in the original location but use META tag to cause automatic refresh to the new URL - OK if it's just one or two pages that are moved Redirection - For more substantial re-organizations or spelling errors - Advantage is clients will be told of new URL - browsers can update bookmarks or search engines can update index - How? - use mod_alias - Directive: Redirect permanent old-url new-absolute-url E.g. Redirect permanent /page.html http://localhost:8080/dir/page.html Redirect permanent /people/ http://localhost:8080/staff/ - In RedirectMatch can use regular expression for old-url - What happens? - client sends request using old URL - server sends back a 301 response; the Location: header specifies the new URL - client automatically re-requests the page, using the new URL from the Location header - server handle sthis request in normal way. A curiosity - depending on how server is configured, if you want to request a directory, best to add slash to end - without the slash, you might cause a redirect.