scripts.mit.edu

MIT SIPB Script Services for Athena

FAQ → Web Script Service

How do I redirect visitors to my web.mit.edu or www.mit.edu URL to my scripts.mit.edu website?

First, you should cd to the directory corresponding to your web.mit.edu or www.mit.edu URL (for example, my directory /mit/jbarnold/www corresponds to the URL http://www.mit.edu/~jbarnold).

Next, you should create a .htaccess.mit file in this directory and add rewrite rules to it. For example, if I wanted to redirect both http://www.mit.edu/~jbarnold/ and http://web.mit.edu/jbarnold/www to http://scripts.mit.edu/~jbarnold, I would add the following two lines:

Redirect 301 /~jbarnold http://scripts.mit.edu/~jbarnold
Redirect 301 /jbarnold/www http://scripts.mit.edu/~jbarnold

The first line handles redirecting http://www.mit.edu/~jbarnold to http://scripts.mit.edu/~jbarnold and the second line (which is completely independent) handles redirecting http://web.mit.edu/~jbarnold to http://scripts.mit.edu/~jbarnold.

You can find more information about Apache Redirect rules on the web using Google or other means. If you have questions about how you should set up your .htaccess.mit file, feel free to contact us by e-mailing scripts@mit.edu.

You can also redirect visitors to your scripts.mit.edu site to another website.

Previous:
Next:
© 2004-2008, the SIPB scripts.mit.edu project.
These pages may be reused under either the GFDL 1.2 or CC-BY-SA 3.0.
Questions? Contact scripts@mit.edu.

You are currently connected to bees-knees.mit.edu.