Redirect /news http://news.example.com Redirect /latest /3.0 The structure of a typical website changes over time, and you can't control how other sites link to you, such as search engines with stale links. To avoid errors when people access your website through old links, you can configure Apache with the Redirect directive to redirect those requests to the correct resource, whether it is in the current server or a different one. Although the Redirect directive can take optional arguments indicating the type of redirect (such as temporary or permanent), the most commonly used syntax is to provide an origin URL and a destination URL. The destination URL can be in the same web server or can point to a different web server altogether. In this example, a request for http://www.example.com/news/today/index.html will be redirected to http://news.example.com/today/index.html. |