Internal, open access

Re-directing

It may be that you wish to redirect people accessing your pages to a different location. This can be done in four ways. You can have a web page redirect to another web page, you can create a UNIX link, use an .htaccess file, or use a home.asis file.

htm re-direct

A page that re-directs to another page can be created using a meta tag in the head section of an htm page.

The refresh/redirect meta tag looks like:

<META HTTP-EQUIV="refresh" content="X;URL=internet_address">

X is replaced with the number of seconds you want the page to display until it goes to the new URL. Internet_address is replaced with the URL of the web site you want to link to.

An example re-direct page would look like this:

<htm>
<head>
<title> Re-direct to new page location </title>
<META HTTP-EQUIV="refresh" content="5;URL=http://www.reading.ac.uk/ITS/">
</head>
<body>
<p> If you are not re-directed to the new page location within 5 seconds, please follow the link
<a href="http://www.reading.ac.uk/ITS/">http://www.reading.ac.uk/ITS/</a>
</body>
</htm>

UNIX link

If the location of your page is

../publish/home.htm

but it used to be in .../home

The browser could be redirected to the publish directory by creating a link to the publish directory by typing, in the home directory:

ln -s publish/home.htm home.htm

this creates the soft link home.htm -> publish/home.htm.

Although this method of linking files can be useful under some circumstances (for example we use soft links to create the shortened URLs for Departments and Groups), since files within the FrontPage Web in the publish directory are found by relative path names, it is better to use the following method.

home.asis

If a text file called home.asis is created, with the content as below, in a directory (make sure that any original home.htm file is renamed to something like home.old, or removed), the browser will be redirected to the location indicated


Status: 301 Page located elsewhere
Location: http://www.chemistry.reading.ac.uk/
Content-type: text/html
The Chemistry WWW pages for the University of Reading can be found at
<a href="http://www.chemistry.reading.ac.uk/">
http://www.chemistry.reading.ac.uk/</a>

If someone accesses the original URL they will be redirected automatically to the new URL. All the links should work correctly. This method of re-directing can be used to direct browsers to a different directory or file on the same Apache server.

Page navigation

 

Search Form