Posts Tagged ‘.htaccess’

Ouch! I’ve Been Banned By Google!

September 19, 2011 Leave a comment


This question has become very common these days. Waking up to find out that your site has disappeared from the rankings of Google is shocking and nothing can be worse than for someone who runs an  business that this. There are certain times when the website does not rank for its own name. These are very clear signs that your site has been banned by .


Google does not offer any warnings before it bans your site. You will only be able to find out when the visitors to your site drops considerably. This will be followed by the sales reducing by a high margin. A high percentage of site owners may be left without an understanding of what actually transpired thus scratching their heads and spending sleepless nights about how to get back.


Your site cannot be banned without a reason.


There are certain Google’s rules which when violated, will make your website banned from the search engines.


The possible reasons that may make your site get banned include:


  • Meta Tags and Robots: Looking at your robots and Meta tags may be the best way forward since it may be possible that your robots have been set in a way to exclude Google spiders from indexing your site. If your site has a robot .txt file, it would make sense if you look at it. Your Meta tags should never show something like this: < Meta name=”ROBOTS”=cont=”NOINDEX”>
  • When this appears on your site, Google will definitely be prevented from ranking to your site. Your choice of a robot code may also lead to your site not being ranked by Google. Ensure that your choice of robot codes is set to allow the  visit all your web pages.
  • Cloaking: You must have heard about cloaking, right? This is a term used to describe a site that sends web pages that have been altered to search engines that crawl the sites. You will note that when different content is returned to the users than what is returned to the search engines with the aim of causing some distortion in search engine rankings. This is one of the malpractices that can have your site banned from Google rankings. Google tries as much as possible to ensure that the quality of the search results is not only consistent but also of high quality. Any site which is involved in cloaking may be banned by Google permanently.
  • So when your website displays different information for a real person and for search engine spiders, your site is said to be cloaking. The cloaked pages are keyword-packed with the intention of displaying different information, which will make it get ranked highly. If you have a site and have included such manipulations, it is high time that you stop. Failure to do this will have your site banned by Google.
  • Duplicate websites and content: Creating content for websites is not an easy task. A site that has duplicate content is penalized by Google. You may have your site banned when someone copies your content, which was original. It is thus important to monitor your content and make sure that noother site is using them. This can be done by carrying out a Google search by using a few of your quotation marks around the content/ (“). If you find out that someone has copied your content; you will find it necessary to visit where you’ll be able to learn more about infringement of copyrights. If your content has been copied without your knowledge, it may be necessary that you check
  • Presence of hidden links or texts: There are many ways that you can have a text hidden. Some of the methods that are used are sneakier than others. When a link or a text is not visible to a human being but only to a , it is considered to be hidden. Texts can be hidden by using white and text colors on a white background or making use of cascading style sheets to hide the texts. When this is done, it’s just a matter of time, and you will have your site banned by Google.
  • Spamming or stuffing of keywords: Google allows up to a maximum of 5 percent of keyword density in the content that appears on your site. There are certain web pages that have been stuffed by keywords unnecessarily. It is important that you use your keywords the right way.
  • Buying links: Buying links will deal a huge blow to your Google rankings. It may not get your site banned, but you will drop down in your Google rankings. Your investment in getting links faster will be a waste. To move up the Google rankings, you may consider staying away from buying links.
  • Creating doorway redirects: Sites that have created sneaky redirects risk getting banned by Google. When its spiders locate such mistakes in your site, it will definitely get banned.


How to get back into Google rankings


Google states that site owners should not make use of sneaky redirects, hidden links or texts and also avoid loading your web pages with words that are irrelevant. Sending automated messages to Google from your website is not acceptable. Furthermore, doorway pages that have been created for the search engines and not for website users should not be part of your site.


To get back into the ranking list, you should ensure that you have checked your sites for the above ethical malpractices and make the necessary modifications. You will need to do this since, even if you resubmit the site for consideration, chances of being rejected are higher.


If you would like to resubmit your site for re-inclusion ion Google rankings, you will need to log into the Google’s Sitemaps which will take you to the bottom of your account page. You will see “Submit a re-inclusion request”. This will direct you to this link:


What does this mean?


Well,you will have to register your website to be considered for reinclusion. After you’ve done this, you will check boxes that will not only you agree to being guilty of the mistakes you committed but also agree to making modifications also a box to promise that you will not commit the mistake again.


There is a box that will allow you to explain yourself. In this space, you will need to include everything that you believe will get your site ranked.


After you have gone through this procedure, Google will send its spiders to your site again to check if your site has been cleaned. It may take a few months to get indexed and during this waiting period, you should not tamper with your site not unless it is very necessary.


After you have done the above, it does not hurt sending Google an email. It is not necessary but it may help get things done faster.


Got comments? had similar experience? please comment and share your knowledge!
Contact me :

Categories: .htaccess, Androide developer, CakePHP, CakePHP Developer India, freelance developer, Freelance PHP Developer, Freelance PHP Programmer, Freelance Programmer India, freelance web, freelance web designer, get a freelancer, Google, Hire Dedicated Programmer, Hire Dedicated Programmer India, Hire PHP Developer India, Hire PHP Professional, Hire PHP Professional India, Hire PHP Programmer India, Hire Web developer, Hire Web Developer India, Indian Freelancer, iphone application developer, iphone developer, iphone website designer, JavaScript, joomla customization india, Joomla Developer, joomla developer india, jquery, mysql, oscommerce Customization, oscommerce developer, php, PHP Freelancer India, php freelancing india, php freelancing india mumbai, PHP programmer, Php programming, Programming Facts Blog, web developer ahemdabad india, web developer india, Web development India, Word Press Reserch, Wordpress Customization Services, Wordpress Developer, Wordpress Developer India, wordpress freelance developer, wordpress freelance programmer, wordpress freelancer, Wordpress Freelancer India, Wordpress Programmer, Wordpress Shopping Cart, Wordpress theme customization, wordpress theme integration Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , ,

How to set PHP configuration(php.ini) values from .htaccess file

Hello Friends,

There might be situation where you need to change php configuration values when you work on server. In local apache server, you can easily change the php configuration values using php.ini file from directory. But what will you do as php.ini is not visible on server ? The solution is.htaccess which is visible on server(.htaccess invisible ?). Using .htaccess you can change the php configuration values.

About php.ini file : The configuration file (php.ini) is read when PHP starts up. For the server module versions of PHP, this happens only once when the web server is started.

AllowOverride Options
AllowOverride All

Look at below syntax for changing PHP Configuration values of php.ini using .htaccess.

php_value name value
Sets the value of the specified directive. Can be used only with PHP_INI_ALL and PHP_INI_PERDIR type directives. To clear a previously set value use none as the value.
php_flag name on|off
Used to set a boolean configuration directive. Can be used only with PHP_INI_ALL and PHP_INI_PERDIR type directives.

php_flag is used when you need to set boolean valuesOther than booloean values, if you need to set php configuration value than usephp_value.

For E.g.

Look at below examples how to set/change upload_max_filesize , post_max_size and memory_limit using php_value in .htaccess.

php_value upload_max_filesize 10M
php_value post_max_size 8M
php_value memory_limit 32M

If you want to increase the uploading maximum size of file than use upload_max_filesize and set to the value as per your neees.
If you want to increase maximum post size of html form than use post_max_size and set value as per your needs.
If you want to increase memory limit than use memory_limit and set value as per your needs.

Look at below examples how to set/change display_errors , log_errors and magic_quotes_gpc using php_flag in .htaccess. For this you need to change values on/off which is boolean.

php_flag display_errors Off
php_flag log_errors On
php_flag magic_quotes_gpc off

You can enable/disable errors using display_errors. Set value to Off to make it disable.Set value to On to make it enable.
You can enable/disable Log errors using log_errors. Set value to Off to make it disable.Set value to On to make it enable.
You can enable/disable magic quotes using magic_quotes_gpc. Set value to Off to make it disable.Set value to On to make it enable.


301 Redirect old dynamic URLs to new static URLs using .htaccess

May 14, 2011 4 comments

Hello Friends,

Today i faced a situation where i need to redirect dynamic URL of my shopping cart to static url. I have changed the Dynamic URL(with query string , ? and &) to static one in my sunshop shopping cart. But still if i will open dynamic url with query string than it shows the content. This is a big issue with search engine as they will consider this dynamic page and static page as two different page and duplicate content issue araise.

Redirect 301 rule in .htaccess (which is below) is common rule everybody knows.

Using .htaccess
redirect 301

Using PHP
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location:; );

What i want is to redirect dynamic urls(with query string , ? and &) to static page. For e.g. If i want to redirect to than look at the below htaccess rules.

RewriteCond %{HTTP_HOST} ^
RewriteCond %{QUERY_STRING} ^a=1&b=2$ [NC]
RewriteRule ^(.*)$ [R=301,L]

Add the above three lines and change the domain name and query string as per your need. Now whenever you will enter , it will redirect to So now Search engine will consider both as one page and duplicate content issue will not araise.

To know more about programming,JavaScript issues,jQuery,Expression Engine,MYSQL database,php info,php editor,programming php,Open-source,php help and php script , subscribe to our feed by entering email address below. You will get updates via email about every tutorial posted on this site . It will not take more than a sec.

Categories: .htaccess Tags: ,
%d bloggers like this: