HTTP Redirect
- Publish "clean" URLs, and redirect
- Site reorganization changes URL -- redirect old to new
Ways to Achieve this
- Redirect (Apache)
- Rewrite (Apache)
- Meta http-equiv refresh (in HTML)
- URL shortener services
Redirecting Requests
HTTP Status Codes:
301 Moved permanently
302 Moved temporarily
301 Moved permanently
302 Moved temporarily
Redirecting client requests can be very useful:
- URL moves to a new location
- resource removed
- site structure is reorganized
- Provide "friendly" URLs to advertise, publish, or refer to foot-long URLs.