Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6388605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:17:59+00:00 2026-05-25T03:17:59+00:00

I am looking for fast methods/ways I can redirect a HTML page to another

  • 0

I am looking for fast methods/ways I can redirect a HTML page to another page.

Currently I use meta-tags to redirect a HTML page to a python script that grabs the website HTML from a SQL database(grabs different HTML based on whether user is on a Mobile device) then sends that HTML back. But this is visibly slow, it shows a blank white page(redirect HTML page) then shows the python script page.

I know that its not the python script thats slow because if I just go straight to the python script(no redirect from the HTML page) then it loads very fast & with no white screen.

So for example; someone accesses http://mywebsite.com/contactUs.html which contains only the following HTML:

<HTML> <HEAD><META HTTP-EQUIV=Refresh CONTENT="0; url=cgi-bin/loadWebPage.py?webpage=50002">  </HEAD> </HTML> 
<!-- This redirects to my python script that grabs the contact us HTML & prints it out(shows the webpage HTML) -->

Are there other ways a HTML file can redirect to a python script that will be faster?

Maybe I can use HTTP messages? Would the following text/code work in a HTML file?:

Status: 301 Moved"
Location:/cgi-bin/loadWebPage.py?webpage=50002

Would my last resort be AJAX or javascript to get the fastest result?

<html>
<head>

    <script type="text/javascript">
    <!--
        window.location = 'http://mywebsite.com/cgi-bin/loadWebpage.py?webPage=50001';
    -->
    </script>
</head>
<body>

</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:18:00+00:00Added an answer on May 25, 2026 at 3:18 am

    Place a file called .htaccess in the same directory as your HTML file. If the file is called “http://www.example.com/foo/bar.html” then .htaccess would contain:

    Redirect permanent /foo/bar.html http://www.example.com/script.py

    Note that the file that gets redirected does not have http://www.example.com, while the file you redirect it to needs the full URL.

    If it’s your own server, it’s a little faster to disable .htaccess files, while instead putting the Redirect command in your httpd.conf file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been looking at fast ways to select a random row from a table
I am looking for fast class for to work with text files and comfortable
I'm looking for a fast way to turn an associative array in to a
I am looking for a fast queue implementation in Java. I see that LinkedList
I'm looking for a fast, embeddable key/value store with cursor semantics over key collections
I'm looking for a fast, clean, pythonic way to divide a list into exactly
I am looking for a very fast way to filter down a collection in
I'm looking for an extremely fast atof() implementation on IA32 optimized for US-en locale,
I'm looking for a small and fast library implementing an HTTP server in .NET
I have been looking into different systems for creating a fast cache in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.