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.

57 comments:

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

    ReplyDelete
    Replies
    1. Osm! This post is very informative and effective. I got what I was looking for. Here to say thank you. Thanks for sharing GBWhatsapp valuable content.

      Delete
    2. Great Article android based projects

      Java Training in Chennai Project Center in Chennai Java Training in Chennai projects for cse The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training Project Centers in Chennai

      Delete
  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. With smartphone and other handheld devices are mostly used for accessing internet, it is important to have responsive website for your business that go comfy on all devices with dissimilar screen resolution.
    You can check my PHP Training site for more details.

    ReplyDelete
  4. 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
  5. We are offering e-commerce web design in affordable price for your Products....

    ReplyDelete
  6. 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
  7. We expect that the new LG V30 will be a super success when it launches at the upcoming global event. With the other Smartphone manufacturers going all in to find the proverbial Pandora’s Box when it comes to customer satisfaction, we have developed a wishlist of the features which the LG will supposedly carry. We can also predict that the MWC 2017 will not be the LG V30 showcase after all, as mentioned here. LG V30 Price

    ReplyDelete
  8. 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
  9. Use dual account with Gbwhatsapp Apk Latest Application With free of cost.

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

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

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

    ReplyDelete
  13. Gbwhatsapp rated best modded application of whatsapp for Android platform, it has amazing features and regular updates.

    Gbwhatsapp

    ReplyDelete
  14. 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
  15. Many people ask Gogoanime, legal or illegal. yes, it is totally legal. This site running legally. You can watch a whole range of anime series free. Everyone can enjoy watching with their family member. You can watch the latest gogoanime at gogoanimetoday.com.

    ReplyDelete
  16. Lottery sambad is the Indian lottery system. The important and main thing which attracts the people to invest in this lottery is the number of prizes and size of the lottery. There are many other lotteries in India but sambad is a very popular lottery among the Indian people.

    We can say that many Indians are fond of lottery games. Our team member daily updated the result of the lottery sambad on this site 3 times a day. So you can view results and download these results on daily basis. Lottery sambad results announce is 11:55 AM, 4:00 PM, and 8:00 AM.

    ReplyDelete



  17. Some of the most successful ABS-CBN programs from the 1990s up to the present
    bear his imprint — from “Showbiz Lingo”, “The Buzz”, lambingan - Watch your favorite Pinoy Tambayan, Pinoy Teleserye Replay, Pinoy
    TV Series and Pinoy TV Shows online for free! “Today With Kris”, “Game Ka Na Ba?”, “Mula
    Sa Puso”, “ASAP” and recent hits “May Bukas Pa”, “Tayong Dalawa”, “Walang Hanggan” and “Ang Probinsyano”.

    ReplyDelete
  18. 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
  19. Welcome To The Adventures World Of Desert Safari, Traverse & Experience The Beauty Of Dubai Desert With Your Loved Ones & Cheer While 5 Live Shows.
    https://www.dubaieveningsafari.com/

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

    ReplyDelete
  21. 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
  22. 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
  23. Piramal Realty has aimed to enrich lives by setting gold standards for customer-centricity, architectural design, quality and safety. Piramal Group’s legacy of responsible stewardship for individual and community growth, as well as the group’s unwavering commitment to Knowledge, Action, Care, and Impact is reflected in our activities as its development arm. Our empathetic engagement with customers guarantees that their needs are continuously met and exceeded, making Piramal Realty developments, places that offer opportunities to thrive.

    ReplyDelete
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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

  35. 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
  36. Thanks for the detailed article on this topic. I would like to see more such awesome articles from you. Download GBWhatsApp APK

    ReplyDelete
  37. 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
  38. 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
  39. 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
  40. 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
  41. What a well written and compassionate article. I found your ideas and wisdom encouraging and helpful.desert safari dubai packages

    ReplyDelete
  42. 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
  43. Check these websites
    1= Check out my website for the variety of paid APKS for free
    Iphone side

    2= Check this for latest TV shows update
    Gurilla

    3= Check this for Wedding Ideas
    Hania Style

    4= Check this for Dramas
    Dramas

    ReplyDelete

I Tech - Technology Updates's Facebook Wall