forwarding the page

  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

i want to know the code for forwording a page
can anyone help me
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

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.
  • Mr. Tech
  • Novice
  • Novice
  • User avatar
  • Posts: 30
  • Loc: Australia

Post 3+ Months Ago

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
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

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.
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

thanks for the help
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6375
  • Loc: twitter.com/unflux

Post 3+ Months Ago

the one ATNO/TW posted is the one I use. good stuff there :thumbsup:
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

thanks for the help
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

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.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

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!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

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.......
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

nah you can get php on a windows server
and I think htaccess is for any apache server.
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

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...

Post Information

  • Total Posts in this topic: 12 posts
  • Users browsing this forum: No registered users and 67 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.