Instructions
The following instructions show how to set up redirection for a website on the depts.washington.edu. With minor substitutions, the same method works for websites on other UW Web servers.
- Make sure your new website is up and running and ready for public browsing. Visitors will be redirected from your old website to your new website 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 website. 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 website’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.