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.

46 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. 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. GBWhatsapp apk Download Latest Version 2018. Download Latest GB Whatsapp for Use 2 Whatsapp in One Mobile.  GBWhatsApp APK

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

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

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

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

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

    Gbwhatsapp

    ReplyDelete
  15. We all know about the app GBWhatsApp which is the most popular among all mods of whatsapp. It is unofficial also but there is a lot of features in this app that made people crazy. Today with the new technology people want advance technology in modern era that’s why people attracted more with mods of apps then official. As we know that there are many mods of whatsapp available but GBWhatsApp is the best in all of these.for more Updates Visit Our GBWhatsApp APK

    ReplyDelete
  16. All The Interested Candidates Read The Notification of The Following Vacancy. Read and Check Are You Eligible For This Vacancy and Read The How to Apply The Online Form of This Job. Online Quran Classes For Kids.

    ReplyDelete
  17. 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
  18. 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
  19. 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



  20. 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
  21. 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
  22. Extend your night experience with an desert safari dubai overnight camping experience at our camp. The ultimate all-inclusive, ‘glamourous-camping’ experience in the heart of the pristine dunes in the Dubai Desert
    Drive to the Dubai Desert point, where you enjoy a thrilling and exhilarating sand dune drive on the most beautiful and highest red sand dunes in Dubai. Try our unique sand-boarding adventure in the dunes A morning in the desert allows you to enjoy the best of traditional and modern Desert safari Dubai morning experiences

    ReplyDelete
  23. 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
  24. we are operating the best tour in Dubai.Join us for the getting of the Dubai desert safari Best Packaged

    ReplyDelete
  25. 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
  26. 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
  27. Launched in 2007 in Dubai, Empire Aviation Group (EAG) is a one-stop-shop for integrated private aviation services, offering upscale aircraft sales, aircraft charter, CAMO and aircraft management. The company have an exclusive asset management approach to private aviation and has assembled a highly professional teal aviation specialists feature world-class aircrafts sale. We aim to use our exceptional experience and knowledge to benefit all our customers.

    ReplyDelete
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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

I Tech - Technology Updates's Facebook Wall