Forum Moderators: phranque

Message Too Old, No Replies

Redirect

Redirecting to a new URL

         

antenc

11:20 am on May 3, 2005 (gmt 0)

10+ Year Member



Can anyone help me with the following problem.

I have moved some files to another server and so have a new URL to access them. I need some way of being able to redirect users from the old url to the new one.

The problem being that the old server is going to be taken off-line in the next few days. So I can't use:

<script language="javascript" type="text/javascript">
window.location="http://example.com/
</script>

in the head of the old file as it won't be there.

Is this possible?

Any help would be much appreciated.

<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>

[edited by: tedster at 11:29 am (utc) on May 3, 2005]

TheDoctor

9:15 am on May 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not move the old domain to the new server?

ska_demon

9:47 am on May 4, 2005 (gmt 0)

10+ Year Member



I think that type of redirect may cause a spam filter to trigger. I used it in a "really dark grey hat" scenario and after about a month the site disappeared. I think, but am not sure that a 302 temporary redirect is the more legitimate way to go. You would use the 302 until the new url has been spidered and se's updated to the new url.
Anyone?

Ska

TheDoctor

7:09 pm on May 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A 301 permanent redirect is the correct way to go, and I'd leave it there permanantly.

But this is no good if the old domain doesn't exist. So I'm still wondering why it isn't being moved to the new server.

antenc

7:32 am on May 5, 2005 (gmt 0)

10+ Year Member



It's not a case of simply moving the domian name accross to the new server. As the old url is made up of the server name and directory etc. The files are being moved accross to the new server so the new url is going to be [server...] There is actually no domain name set up for it.