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 8299787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:17:25+00:00 2026-06-08T16:17:25+00:00

I am using a combination of .htaccess redirect and HTML meta refresh to put

  • 0

I am using a combination of .htaccess redirect and HTML meta refresh to put in a temporary splash page while restoring my web site from a backup.

Here’s the index.html:

<!DOCTYPE html>
<html>
    <head>
        <title>Site Restore</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="refresh" content="15">
        <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?3.5.1/build/cssreset/cssreset-min.css&3.5.1/build/cssfonts/cssfonts-min.css&3.5.1/build/cssbase/cssbase-min.css">
        <style type="text/css">
            html {
                background-color: #ccc;
            }
            div {
                margin: 1em auto;
                border: 1px solid #000;
                border-radius: 0.5em;
                padding: 1em;
                width: 480px;
                background-color: #fff;
            }
        </style>
    </head>
    <body>
        <div>
            <h1>Site Restore</h1>
            <p>This web site is being restored from a back-up, and will be back online shortly.</p>
            <p>If you leave this page open, it will redirect when the site restore is complete.</p>
        </div>
    </body>
</html>

.htaccess Redirect:

RewriteEngine On
RewriteBase /
RewriteRule ^.+$ / [R=302,NC,L]

After the backup restore is complete, I remove the RewriteRule ^.+$ / [R=302,NC,L] line from .htaccess and delete the index.html file. Even though index.html is not in the URL, I get this error back from the web server:

Forbidden

You don’t have permission to access /index.html on this server.
Apache/2.2 Server at dev.swissmangocms.com Port 80

If I manually refresh the browser window, index.php is loaded as I would expect. How do I avoid the error message and manual step?

  • 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-06-08T16:17:29+00:00Added an answer on June 8, 2026 at 4:17 pm

    Jon Lin‘s comment caused me to look in the direction of disabling browser caching. I found another post on SO, “Using tags to turn off caching in all browsers?“, and added these lines to my index.html <head> section:

    <meta http-equiv="cache-control" content="max-age=0">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT">
    <meta http-equiv="pragma" content="no-cache">
    

    That fixed the error!

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

Sidebar

Related Questions

I'm having some trouble using a combination of XElement and XslCompiledTransform . I've put
I'm getting this error while running tomcat 'java.lang.ClassNotFoundException: com.mysql.jdbc.Driver'. I'm using a combination of
I'm using a combination of Jquery and html imagemap to have a banner with
My company develop web apps using combination of mod_perl, axkit and apache. We have
We are using SLF4J+Logback combination at our project for a while now and are
I'm using a combination of Knockout.js + the Knockout mapping plugin + jQuery in
I am using a combination of wireshark's tshark and jnetpcap to decode offline captures
I'm using the combination of json_encode (PHP) and JSON.parser (Javascript from json.org) for passing
I'm using a combination of PHP and Phonegap. I use PHP to build the
Some background I've created a GUI using a combination of a GUIDE built Figure

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.