Sunday, September 11, 2011

Putting Website in Maintenance Mode With .htaccess


Your website need constant maintenance & up gradation. This is the time when you  you need to put up a “maintenance mode” page while working on the site (e.g. while moving a site to a different server). What’s the best way of doing that? First you create a small, static HTML page that will appear to your visitors, then you put this at the top of your .htaccess file:
  • RewriteEngine On
  • RewriteBase /
  • RewriteCond %{REQUEST_URI} !^/berightback\.html$
  • RewriteRule ^(.*)$ http://example.org/berightback.html [R=307,L]

If you still need to be able to access the live site while you perform the maintenance, you can add a condition permitting requests from your IP address. This line should be placed after the RewriteBase / line:
  • RewriteCond %{REMOTE_ADDR} !^00\.000\.000\.000

Be sure to replace the zeros in 00\.000\.000\.000 with the digits from your own IP address, which you can find 
by visiting WhatIsMyIP.com.

41 comments:

  1. The products which you are povideing are good technologies based. EDI Provider

    ReplyDelete
  2. realy nice post of your engine teachnology lates engine little oil use to do work and very nice invent for human bieng. Tech Tips

    ReplyDelete
  3. Thanks for your informative post!!! After completing my graduation, i am confused whether to choose web design as my career. Your article helped me to make a right choice. Wordpress Training in Chennai

    ReplyDelete
  4. We are offering e-commerce web design in affordable price for your Products....

    ReplyDelete
  5. From all these gadgets some are meant for connectivity, some for data storage and some for business purposes. Most of people give more priority to entertainment.
    showboxdownloadsapp.com

    ReplyDelete
  6. Very good information. we need learn from real time examples and for this we choose good training institute, I'm interested to know about php which is quite interesting. i need a good training institute for my learning .. so am attending the free demo class which is provided by Apponix Technologies.
    https://www.apponix.com

    ReplyDelete
  7. Use dual account with Gbwhatsapp Apk Latest Application With free of cost.

    ReplyDelete
  8. Great information thank you. use WPS Connect App on your Android devices for network connections.

    ReplyDelete
  9. Use dual account with GBWhatsapp Latest Version Application With free of cost.

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. Is it true that you are prepared to play this game? That is extraordinary. In this article I will reveal to you the most recent highlights, downloading and introducing procedure of the Head Soccer apk mod. Hence, you should peruse this article bit by bit. How about we start highlights of this game!
    head soccer
    head soccer mod apk
    head soccer unblocked

    ReplyDelete
  12. We offer different desert quad bike tours that’ll have you and your buddies scaling the Arabian sand dunes and taking in some truly breathtaking scenery motorcycle rental dubai.

    Desert Safari Dubai, a 6 Hours Tour in the Desert of Dubai that is dipped in the rich sauce of thrill and excitement. The trip includes the activities like Belly Dancing, Dune Bashing, Tanura Dance, Sand Boarding dubai city tour,

    Hatta is an ancient town located from a one hour drive from Dubai City. Having said that, the town is full of breathtaking views, mountains, parks, etc dubai city tour.

    ReplyDelete
  13. we are operating the best tour in Dubai.Join us for the getting of the Dubai desert safari Best Packaged

    ReplyDelete
  14. When you first visit Dubai, you should go on a Dubi desert safari evening. Why? Because it is the most enjoyable way to experience the desert, and you can taste the local food and - high tourism, local Bedouin culture.

    My husband and I have not yet gone on a desert safari. We are interested in the whole branch that the city offers. But when our friends came to visit, we decided it would be nice to do one of these safaris.

    We don’t really know what to expect when the car wakes up to start our adventure of Desert safari Dubai Deal, but it was all a very exciting experience!

    ReplyDelete
  15. Aesthetics International is the Dubai’s premiere centers popular for Plastic Surgery & Cosmetic Surgery. We deliver various services such as Coolsculpting, tummy tuck, laser hair removal, liposuction with a high standard at reasonable prices. With our certified plastic surgeons and dermatologists, we offer our clients the safe surgery in a fully-equipped private setting and in the best care they need.

    ReplyDelete
  16. Welcome to merakibyFridaR we offer carefully printed shirts and tank top for people in various sizes and tones for New Year, Happy Christmas, and Valentine's Day. Our need is to give quality items to fulfill our clients.

    We have a huge number of plans in the line. Assuming you can't track down a particular plan here, message us and propose the plan, we will attempt to give you that particular plan.

    ReplyDelete
  17. You will get moon cyanotype print with the finest material of Hahnemuhle photo rag paper. It is handmade and kept in the darkroom for drying. Also, this print is then kept under the UV rays and washed with fresh water. Afterward, some of the vinegar and citric acid are added to bring out the vibrant blue color. The construction is done according to the old photographic process of 1842 discovered by John Herschel, an astronomer. The paper is acid-free and of 100 percent cotton and chlorine. Here is the product link: Moon Cyanotype Print

    ReplyDelete
  18. 14k gold filled dainty crescent moon stud earrings. These perfect minimalist stud earrings look great alone or mixed and matched with other cute studs if you have multiple piercings. To buy this product click here: Plain Hoop Earring

    ReplyDelete
  19. Do you have a habit of collecting the wine caps or any other corks? You can buy this memory box to collect all the tops of the corks for years. This wall-hanging home décor will be an ideal option for gifting, and you will have a customization option as well. We will add the names upon request in this memory box. The design of the box will suit any beverage tops; get yours today! To buy this product tab the link hare: Memory box

    ReplyDelete
  20. Modernize your fabric stash today.
    These prints make perfect gifts for the up and coming generation of sewing enthusiasts. To buy this product tab the link hare: TEXT ME FABRIC

    ReplyDelete
  21. Floral greeting card with yellow freesia flower stem. This is a versatile BLANK botanical note card perfect for all occasions such as birthdays, thank you, get well or with sympathy.

    Available as a single card or a pack of 6 (same design).

    - A6 notecard (105mm x 148mm)
    - Blank inside for your message
    - 350gsm uncoated paper
    - C6 kraft envelope
    - Packed in a cellophane bag
    - Made in the UK
    To buy this product tab th link hare: MINI GREETING CARDS

    ReplyDelete
  22. Floral marble contrast drop hang earrings
    Blue, red, green, purple, black and yellow color available
    Measurements in pics
    To bay this product tab the link here: LILAC EARRINGS

    ReplyDelete
  23. Our Desert Dubai safari ideal for single travelers, couples, families, couples or groups of friends. No matter what the reason, if you are in Dubai, don't forget to check the experience Dubai dhow cruise dinner In this exciting experience, it can be enjoyed by the Arabian Nights, on a wooden boat.

    ReplyDelete
  24. An array of activities can be enjoyed in the Desert Adventure is a journey, of the camel, dune, the hunt for horseback riding. You can experience the loose sedimentary rocks, the sand dunes with the wind.

    ReplyDelete
  25. Welcome to our shop. Our company is making beautiful art design for home,offices,mosque etc. Digital art is more efficient and time saving. It is easier than physical art because when you can design your art, if you make a mistake then press undo,and your art starts again. We have amazing art design.click here:MODERN LINE DRAWING

    ReplyDelete
  26. Welcome to our shop. Our company is making beautiful art design for home,offices,mosque etc. Digital art is more efficient and time saving. It is easier than physical art because when you can design your art, if you make a mistake then press undo,and your art starts again. We have amazing art design. click here:ILLUSTRATED PORTRAIT

    ReplyDelete

  27. We offer vintage porcelain. Good quality material is used for making it. This is a vintage sign Valvoline racing motor with the sizing of 11 3/4" By 11 3/4". About its quality, don`t doubt because it is prepared from heavy and thick porcelain metal material. This oil advertising and gasoline sign has bosom pictures for a nude girls. In reality, graphics are hardly found on the market. It will be attracting to the others, and it has superb form. The antique metal sign has four holes to hang it anywhere expediently. Click here to buy this product: Vintage Porcelain Valvoline Racing Motor

    ReplyDelete
  28. You are really a just right webmaster. To activate the Microsoft product in a short time, go through this link and download KMSPico to activate Microsoft products. It is virus or malware-free.

    ReplyDelete
  29. Thanks for sharing this good information. Are you interested in any Adobezii download? If yes then you can see our article about Abode is the most popular application and design program.

    ReplyDelete
  30. This is interesting, I’ll check out your other posts! Free software for your system. Are you convert your operating system into a legal version then [url=https://network-89730.mn.co/posts/17530635]download KMSPico[/url] in your system. It is free software that is virus or malware-free.

    ReplyDelete
  31. This is interesting, I’ll check out your other posts! Free software for your system. Are you convert your operating system into a legal version then download KMSPicoHref download KMSPico in your system. It is free software that is virus or malware-free.

    ReplyDelete
  32. I think this is an informative post and it is very helpful and knowledgeable. So I want to thank you for your efforts in writing this article. All content is well thought out. Thank. dune buggy rental dubai

    ReplyDelete

I Tech - Technology Updates's Facebook Wall