Server-Based Redirect
IT Connect > Web > Publishing > URL Redirect > Server Redirect
Instructions
The following instructions show how to set up redirection for a Web site on the depts.washington.edu. With minor substitutions, the same method works for Web sites on other UW Web servers.
- StepsActions
-
Make sure your new Web site is up and running and ready for public browsing. Visitors will be redirected from your old Web site to your new Web site as soon as you have completed these steps.
-
Log into your web development server using a terminal emulator. If you're not sure how to do this, click here for instructions.
-
At the prompt, enter the following command to change into to your Web directory:
cd public_html
-
Edit the server directive file of your old Web site. To do so using the Pico editor, enter:
pico .htaccess
Add the following lines to the file:
RewriteEngine on
RewriteRule ^(.*)$ http://newsite.washington.edu/ [R=301,L]Replace http://www.newsite.washington.edu with your new Web site's location.
-
Save and close the file using Pico. (Click for instructions on how to use pico).
-
That's it! Check your site to make sure it's working properly.
Contact Us
This page is maintained by UW Information Technology. Please contact us at help[at]uw.edu if you have any questions about this documentation, require assistance, or have feedback.


