Solved

How to redirect to another URL

Posted on 1998-02-05
6
296 Views
Last Modified: 2013-12-25
I've seen web sites that show a page for a few seconds, then automatically redirect to another URL. How do they do this? The only way I am able to put a redirect statement is before the <html> statement, which immediately redirects, without being able to show the page that is doing the redirection for a few seconds, as I want to.
0
Comment
Question by:chekhov
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 1831951
You do it like this (example in PERL)

#!/usr/bin/perl

print "Location: www.moved.com\n\n"


The actual temporary display is performed by the browser and is handled differently by different brands.  The Location response, it what triggers that to happen.
0
 
LVL 1

Expert Comment

by:bass5763
ID: 1831952
You can do it in HTML with the command:
<META HTTP-EQUIV="Refresh" CONTENT="60; url=page.htm">

make sure you put it in between<HEAD> </HEAD>
the 60 is the amount of seconds you want it to wait before moving on. the URL is the page to goto.

Thanks,
Matt Calhoun
0
 

Author Comment

by:chekhov
ID: 1831953
bass5763: you gave me the correct answer, but I can't assign it to you because you entered it as a comment, not as an answer. Please reenter it as an answer.
0
RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

 
LVL 1

Expert Comment

by:bass5763
ID: 1831954
First, you have to re-open the question in order for me to answer it.

Thanks,
Matt Calhoun
0
 

Author Comment

by:chekhov
ID: 1831955
bass5763: it's reopened now
0
 
LVL 1

Accepted Solution

by:
bass5763 earned 100 total points
ID: 1831956
You can do it in HTML with the command:
<META HTTP-EQUIV="Refresh" CONTENT="60; url=page.htm">

make sure you put it in between<HEAD> </HEAD>
the 60 is the amount of seconds you want it to wait before moving on. the URL is the page to goto.

Thanks,
Matt Calhoun
0

Featured Post

CHALLENGE LAB: Troubleshooting Connectivity Issues

Goal: Fix the connectivity issue in the lab's AWS environment so that you can SSH into the provided EC2 instance.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question