JoomlaSriLanka | Web Designer in Sri Lanka

How to stop Google indexing your site when it is under construction or maintenance

When you are creating a new website with Joomla or with any other method on a live server, Google might index the half-done pages and give you crappy search results for some time.  Best thing is to block google from visiting the site using the good old robots.txt 

change the content of the robots.txt in the root folder to 

User-agent: *
Disallow: /


thats it , google will never look at your site untill you remove these lines. So dont forget to replace these codes with original Joomla robots.txt file contents later.

User-agent: *
Disallow: /administrator/
Disallow: /cache/
Disallow: /components/
Disallow: /images/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /libraries/
Disallow: /media/
Disallow: /modules/
Disallow: /plugins/
Disallow: /templates/
Disallow: /tmp/
Disallow: /xmlrpc/

Further reading http://antezeta.com/news/avoid-search-engine-indexing

Add comment


Security code
Refresh

Your Web Design Partner in Sri Lanka

Register or Login with Facebook

What is Joomla! ?

Joomla® is an open source content management system (CMS) for publishing content on the internet as well as on intranets. Joomla® CMS is developed and maintained by Joomla Project of Open Source Matters. Click here to go to Joomla Official website.   

We provide customized website solutions powered by Joomla since 2005. Read more about our Joomla solutions here.

Visit us on your Smartphone

qrcode.joomlasrilanka.com

Scan this QR code with your smartphone to see our mobile website.

Login Form

අපගේ සේවාවන්

ජූම්ලාශ්‍රීලංකා වන අපි  , ශ්‍රිලංකාවේ ස්ථාපනය කර ඇති සම්පූර්ණ අන්තර්ජාල සේවා සපයන ආයතනයකි. වෙබ් අඩවි නිර්මානය , සංවර්ධනය සහ අනෙකුත් අන්තර්ජාලය සම්බන්ධ සියලුම සේවා සඳහා අමතන්න 0773852227

අපගේ සේවාවන්
1. වෙබ් අඩවි නිර්මාණය ( වෙබ් ඩිසයිනින්)
2. අන්තර්ජාල මෘදුකාංග සංවර්ධනය ( වෙබ් ඇප්ලිකේෂන් ඩිවෙලොප්මෙන්ට්)
3. වෙබ් හෝස්ටින් සහ ඊ-මේල් පහසුකම්
4. ජූම්ලා! තොරතුරු කලමනාකරණ පද්ධතිය ස්ථාපනය 
5.වෙබ් අඩවි සෙවුම් යන්ත්‍ර සඳහා ප්‍රශස්තිකරණය ( සර්ච් එන්ජින් ඔප්ටිමයිෂේශන් )
6. අන්තර්ජාලය තුල ව්‍යාපාර කටයුතු සඳහා ඊ-වාණිජ්‍ය වෙබ් අඩවි නිර්මාණය  ( ඊ කොමර්ස් වෙබ් සයිට් ) 

Loading ...