forwarding the page

  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jan 22, 2003
  • Posts: 2998
  • Loc: Canada "A"
  • Status: Offline

Post August 27th, 2003, 5:37 pm

i want to know the code for forwording a page
can anyone help me
Custom Built Computers & The Top Quality Hardware Money Can Buy
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 27th, 2003, 5:37 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post August 27th, 2003, 7:31 pm

Very easy:
Code: [ Select ]
<META HTTP-EQUIV="refresh"
content="10; URL=http://the URL of the second page">
  1. <META HTTP-EQUIV="refresh"
  2. content="10; URL=http://the URL of the second page">


Tutorial:
http://www.draac.com/htmlextrameta.html

Google search: "refresh code" (with the quotes)

There are more complicated ways to do fancier things with various programming codes, but that's the easy way.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Mr. Tech
  • Novice
  • Novice
  • User avatar
  • Joined: Aug 27, 2003
  • Posts: 30
  • Loc: Australia
  • Status: Offline

Post August 27th, 2003, 8:00 pm

cowkiller wrote:
i want to know the code for forwording a page
can anyone help me


Or you can use php:

Code: [ Select ]
<?php
header("location: http://www.url.com/page.html");
?>
  1. <?php
  2. header("location: http://www.url.com/page.html");
  3. ?>


:P
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 28th, 2003, 7:58 am

isn't javascript
Code: [ Select ]
<script>
document.href="url"
</script>
  1. <script>
  2. document.href="url"
  3. </script>


thought i'd try, but thats prolly not it.
Pixel Acres V2
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jan 22, 2003
  • Posts: 2998
  • Loc: Canada "A"
  • Status: Offline

Post August 28th, 2003, 10:46 am

thanks for the help
Custom Built Computers & The Top Quality Hardware Money Can Buy
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post August 28th, 2003, 10:52 am

the one ATNO/TW posted is the one I use. good stuff there :thumbsup:
UNFLUX.FOTO
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jan 22, 2003
  • Posts: 2998
  • Loc: Canada "A"
  • Status: Offline

Post August 28th, 2003, 11:11 am

thanks for the help
Custom Built Computers & The Top Quality Hardware Money Can Buy
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post August 28th, 2003, 5:10 pm

As stated earlier I prefer the simple meta refresh I gave earllier, but I also mentioned in the post that there are fancier things that can be done that require a bit more programming. For example, ever see a site that has service.thatsite.com and also info.thatsite.com as well as shopping.thatsite.com -- also throw in the main page.

So if I type in service.thatsite.com into my browser how does it know to take me there instead of info.thatsite.com

Here's a little ASP script tutorial I through together to explain how to do that type of redirection using ASP (I need to tidy it up a bit in the future, but it pretty much gives the idea as well as the code):

http://atnopro.com/help/subdoms/subdomains.html

I'm sure it's not much different with other languages like PHP or JSP...they all need to work on the same principles.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 28th, 2003, 5:26 pm

or you could just use .htaccess :-P

PS. I'd read the article if I had the capability to code in ASP but I don't I did skim through it though and it looks pretty thorough!
Pixel Acres V2
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post August 28th, 2003, 6:29 pm

And I don't have .htaccess (nor have I researched it much, but isn't that available to Unix/Linux servers -not Windows?)

That's the kicker about my host...and about the only thing I don't like...I can only get ASP if my domain is on a Windows server, and I can only get PHP if I'm on a Linux...and I can't get JSP at all...and I want to learn all three...!!! If I could get all three, I'd spend the $30 bucs extra a month and add an SQL database -- (Access2000 is frustrating as hell!)

(Man ATNO -- what's got into you -- two totally off-topic threads in less than 5 minutes! -- *kicks himself to reboot ---
Atno is shutting down in 5, 4, 3, 2, 2,2,2,2,2,2,2,2,2, *goshdarn Windows --- shuts of power.......
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 28th, 2003, 7:34 pm

nah you can get php on a windows server
and I think htaccess is for any apache server.
Pixel Acres V2
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jan 22, 2003
  • Posts: 2998
  • Loc: Canada "A"
  • Status: Offline

Post August 30th, 2003, 3:27 pm

hey i used the first one and it worked if you want to see what it was for it is this sales.cowkiller.com it is a little thing i am working on...
Custom Built Computers & The Top Quality Hardware Money Can Buy

Post Information

  • Total Posts in this topic: 12 posts
  • Users browsing this forum: No registered users and 119 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.