The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Auto-redirection, using html to redirect from a site
Minarin
post Dec 11 2007, 09:32 PM
Post #1





Group: Members
Posts: 2
Joined: 11-December 07
Member No.: 4,519



I've switched from Geocities to my own host and would like to have it auto-redirect. That part is covered, I've quickly put together a little redirect page: http://www.geocities.com/minarinshop/

I'm currently using JavaScript
<script language="javascript"><!--
location.replace("http://linuxdigital.net/minarin/index.html")
//-->
</script>

But, will later go back to HTML:
CONTENT="2; URL=http://linuxdigital.net/minarin/index.html">

My problem is that with both methods, the URL stays the same, even if I navigate on to new pages. How can I fix this?

Thank you!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Dec 11 2007, 10:18 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,097
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Please see the FAQ entry Is there a way to prevent getting framed?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 11 2007, 11:06 PM
Post #3


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 15,979
Joined: 9-August 06
Member No.: 6



You could improve the JavaScript by usning
CODE
top.location.href = '[NEW URL]';

if geo doesn't have a way around that too. But above all you should have real link on the page that everyone can follow.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Minarin
post Dec 12 2007, 12:05 AM
Post #4





Group: Members
Posts: 2
Joined: 11-December 07
Member No.: 4,519



QUOTE(Darin McGrew @ Dec 11 2007, 10:18 PM) *


thank you very much.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2015 - 10:08 PM