Harvard Extension School
CSCI E-12 Fundamentals of Web Site Development | Fall 2019

## HTTP Redirect

- Publish "clean" URLs, and redirect
- Site reorganization changes URL -- redirect old to new

- Redirect
- Rewrite
- Meta http-equiv refresh
- URL shortener services

### Redirecting Requests

HTTP Status Codes:
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.

Copyright © David Heitmeyer