Solved

Automatic Redirect Page - W/Out Displaying the Redirect Page

Posted on 2006-07-05
7
557 Views
Last Modified: 2010-04-25
Is there a way to make a simple HTML page that will automatically redirect users to another page - without first displaying the redirect page?

I have tried using this:

<meta http-equiv="REFRESH" content="0;URL=http://www.tnbaptist.org/category.asp?cat=wmu">

...but it still displays the redirect page for a second or two before going to the new page.

How can I do this without displaying the first page?

Thx!
0
Comment
Question by:mksalva
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 17046422
well you can hide the Content of the Entire Page Instead.

<body>

  <div id="hider" style="visibility:hidden">
          all the code for the current Page, that requires to be hidden
  </div>

 </body>
0
 

Author Comment

by:mksalva
ID: 17046438
Thanks for your reply.

If I hide the code, will users have to look at a white screen for a few seconds before they are redirected?

Thx,
Mike
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 125 total points
ID: 17046461
Hi mksalva,

When you say "without first displaying the redirect page", do you mean display the page in the browser or display the URL doing the redirection for that fraction of a second?

If the former, just make your redirect page blank.  There should be no reason to have other content there.

If the latter, you would need to use Apache's RedirectMatch or RewriteRule directives to make the redirection happen without touching a page.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:mksalva
ID: 17046488
I mean the former; that is, I don't want the page to display in a browser. I don't care if someone sees the URL, but I'd like to avoid displaying a white screen in the browser for a few seconds.

Is RedirectMatch or RewriteRule special software that would require me to shell out money?

Best,
Mike
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17046504
Shouldn't take a few seconds if the entire content of the page is a javascript that bounces onLoad.  

RedirectMatch and RewriteRule are built into Apache.  You create an .htaccess file in the web root and then add the statements you need.  Google for instructions.
0
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 17048082
mksalva your website is hosted using Apache Server?
if yes then you can do that.

like you said you dont want to show the content, so why dont you just remove the content or use the hide technique i suggested.
0
 
LVL 25

Expert Comment

by:Rouchie
ID: 17048475
Not sure about the technology you are using, however, in ASP you can use

<% RESPONSE.REDIRECT("page.html", True) %>
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 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