General discussion

Locked

redirecting websites

By sparky_132 ·
when i use the following script in the <head> of my index.htm file to relocate to my new website from my old one for some reason the pictures do not show up

<SCRIPT language="JavaScript1.1">
<!--
location.replace("http://www.newsite.com/page.html");
//-->
</SCRIPT>

why is this and are there any other alternatives, other than saying "this site has moved please click here"

This conversation is currently closed to new comments.

8 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

redirecting websites

by sparky_132 In reply to redirecting websites

to see what i'm trying to explain
1st, go to "www.geocities.com/sparky_132/"

2nd, go to
"http://homepage.ntlworld.com/sparky_132/"

notice the pictures you type in the correct address, but when you are redirected no pictures?!!!

Collapse -

redirecting websites

by wayne.tyson In reply to redirecting websites

Can't explain why this occurs, but here is an alternative....You won't be able to display a transition page, but the redirect should occur:

<HTML>
<HEAD>
<TITLE>Meta Redirect</TITLE>
<META HTTP-EQUIV="refresh" CONTENT=0;URL="http://www.newsite.com">
</HEAD>
</HTML>

Collapse -

redirecting websites

by sparky_132 In reply to redirecting websites

thanks but i knew this already, i really want to find out why it's doing it with th e javascript redirect, but thanks anyway

Collapse -

redirecting websites

by Bojidar Alexandrov In reply to redirecting websites

It actualy works now...
I am with IE 5.5 on Win2000 Server

Collapse -

redirecting websites

by sparky_132 In reply to redirecting websites

The question was auto-closed by TechRepublic

Collapse -

redirecting websites

by aksrini_1980 In reply to redirecting websites

Hello,
U can do this with another simple way. That is using the 'Response.Redirect' method. This is pretty simple to use. Put the following code in any page before any HTML header tag is written Else, U will get an error telling
"HTTP HEADER ALREADY WRITTEN..."
Use it as:
<%
Response.Redirect "http://homepage.ntlworld.com/pallett-boys/"
%>

Because it is always advisable to do the redirection from the ServerSide. Rather than from the ClientSide.
Though this will overload the server a bit it is more advantageous.

Collapse -

redirecting websites

by sparky_132 In reply to redirecting websites

The question was auto-closed by TechRepublic

Collapse -

redirecting websites

by sparky_132 In reply to redirecting websites

This question was auto closed due to inactivity

Back to Web Development Forum
8 total posts (Page 1 of 1)  

Related Discussions

Related Forums