Solved

Automatic Redirect Page - W/Out Displaying the Redirect Page

Posted on 2006-07-05
7
556 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:adilkhan
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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:adilkhan
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
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.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now