Redirect a webpage?

I have an account on a UNIX web server which allows me to store my webpage. However, I would like my webpage to reside with another provider and would hence like to set up a redirect to the new server. My sysadmin is out of town so I cannot ask him, and I do not want to create on of those 'You are being forwarded' client pull (meta redirect) pages. Since UNIX features such files as .forward and .htaccess I am wondering if there is a way--a file or a setting--which I can create/specify from my account in order to redirect browser by default (ie by sending a Location: %url% header to the browser).

Any ideas?
Who is Participating?
StrangeConnect With a Mentor Commented:
If your WEB-server is Apache then you can try thic command in
htaccess file in your public html (~home) directory
Redirect [status] url-path url
for example:
Redirect /~madduck 

But your webmaster can disallow you to use such commands
In these case you better do that, what you dont wont to.

Oh, the status is:
permanent - Returns a permanent redirect status (301)
temp - Returns a temporary redirect status (302).
seeother - Returns a "See Other" status (303)
gone - Returns a "Gone" status (410)

serveral ways to do it, one is use javascript, but you should changed the html file in your oringinal site. following is an example:

<title> test page </title>
<script language="JavaScript">
MaDdUCKAuthor Commented:
nope, I do not want any Java or the like. Just a pure UNIX function not even involving any HTML.
The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

MaDdUCKAuthor Commented:
Read my question please ... no meta redirects!
what you want is not possible
MaDdUCKAuthor Commented:
are you sure? I know people who have a feature like this with their accounts. Do you have to contact the webmaster?
If you only need to redirect specific pages, *and* your admin had set up the server to allow .htaccess files...

In your .htaccess:

AddHandler send-as-is .html


In your index.html:



Make sure there is no blank line in front of "Location" and at least two blank lines after the line.
MaDdUCKAuthor Commented:
I operate two accounts, one on linux, one on unix. the linux one now offers me to dowload ~madduck (my home dir) when I access it with IE, the unix one gives an internal server error. Both servers allow .htaccess...what am I doing wrong?
If you change ISP, you also change your domain, means that the new FQDN is different to the previous one.
If you don't want a redirect-page on your old side, the only way is to tell the client to use the new domain.

If you would like to program, IP packets know a "ICMP redirect"
which is exactly what you need, but unfortunately this mechanism will be rejected by most servers (because of vulnerability).
MaDdUCKAuthor Commented:
I am not changing ISP's, all I want is to use a different ISP, but keep this current address as an entry point.
it depends on the server software, but generally, it's not something that's under the control of a user..  

you can use the meta redirect described above, or you can use a perl script to redirect, or you can have your admin update the redirect file in the server configuration..

good luck

MaDdUCKAuthor Commented:
I do not want
(a) use meta redirect
(b) use perl or CGIs (no access)
(c) contact my webmaster

htaccess files should be under the user's control. squint is pretty much on track, so now I gotta figure out why it does not work.
MaDdUCKAuthor Commented:
whoa, worked!!!
thanks a bunch!
All Courses

From novice to tech pro — start learning today.