Google Webmaster Tools; 0 Indexed Pages

Google Webmaster Tools

I recently logged into Google Webmaster Tools to see what was new and interesting in regards to our web ranking, keywords, and other nifty webmaster statistics. My heart almost dropped and hit the ground when I looked at the Site Configuration -> Sitemaps page. It showed, and still currently does, 0 indexed pages. Clearly a bit concerning since a few days prior I had all pages indexed.

My first thought was that Google had blacklisted our site and removed all our pages. I quickly logged into another account which hosts other domains, and noticed the same thing; 0 indexed pages. Whew, this seems to be a bug with Google Webmaster Tools, at the moment.

Anybody else experiencing this? Leave comments if so.

UPDATE: It appears this is a confirmed bug (http://webmaster-forum-announcements.blogspot.com/2010/04/known-issue-sitemaps-indexed-url-count.html). Even though the blog posts says that this issue has been resolved, I am still seeing 0 indexed pages in my webmaster tools account.

Running Google’s Android On An Apple iPhone

This is the single biggest news in iPhone hacking since the original jailbreak. iPhone hacker Planetbeing managed to port Google’s Android Mobile OS to the iPhone.

It’s still in alpha version and a bit buggy, but with some improvements, this would allow anybody to use both iPhone and Android OS on their iPhone.

Tracking Events And Goals With Google Analytics Asynchronous

Recently we switched over our Google Analytics code to the new and improved asynchronous tracking code. The new async analytics code claims to provide more accurate visitor tracking and also allows you to put the tracking snippet higher in the page without delaying subsequent content from rendering.

Unfortunately, when we made the switch to analytics asynchronous, we couldn’t figure out how to migrate two essential things.

  • The first was event tracking. Event tracking allows analytics to track when a particular link or promo (video/image) is clicked.
  • The second was setting a goal from a form that is submitted via AJAX. Our sign up form submits via AJAX, and thus there is not a traditional thank you page.

No need to worry though, we figured it all out, and have both solutions. Watch the video tutorial below for a full detailed explanation.

Event Tracking Javascript Code Snippet

_gaq.push(['_trackEvent', 'Videos', 'Viewed', 'How It Works']);

Set Goal (Virtual Pageview) Code Snippet

_gaq.push(['_trackPageview', '/sign-up-complete.php']);

How To Setup The Goal In Google Analytics

Goal Setup Google Analytics

Tagged with:  

Lighttpd Web Server With WordPress Permalinks

We at 619Cloud are huge fans of lighttpd web server instead of the traditional web server apache. In fact, we run lighttpd for our site, and recommend it to clients over apache as much as possible and when appropriate.

Lighttpd has shown superior performance in regards to serving static content (javascript, css, html), and uses fast-cgi for processing server side content such as php. Additionally, lighttpd has a significantly lower memory footprint than apache and scales extremely well, while apache becomes a memory bog when traffic increases. When running any type of cloud hosting (virtual private servers), every megabyte of memory is critical, and the more you can squeeze out, the better.

The biggest problem, and pain point for most users and system administrators making the switch to lighttpd, is how to replicate mod_rewrite rules of apache and .htaccess files. Specifically, most users and system administrators want to replicate the wordpress structure of permalinks using mod_rewrite.

Unfortunately, lighttpd does not support .htaccess files natively, and the lighttpd version of mod_rewrite syntax is a bit different than apache.

Never fear though. We have a set of lighttpd mod_rewrite rules that we use our self, and for our clients specifically tailored for wordpress with lighttpd.

  1. First include a reference to a separate lighttpd rewrite rule configuration file in your main lighttpd.conf file (usually /etc/lighttpd/lighttpd.conf). This is not required, but we like to break apart the main lighttpd configuration directives from the custom rewrite rules to keep things nice and tidy.

    # Include custom rewrite rules
    include "/etc/lighttpd/rewrite_rules.conf"
  2. Create the custom rewrite rules configuration file (/etc/lighttpd/rewrite_rules.conf) and place the following lines in it:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    
    $HTTP["host"] =~ "(^|\.)mydomain\.com$" {
       url.rewrite-once = (
          # Exclude additional specific directories from rewrites
          "^/(custom-js)/?(.*)" => "$0",
     
          "^/(wp-.+).*/?" => "$0",
          "^/(sitemap.xml)" => "$0",
          "^/(xmlrpc.php)" => "$0",
          "^/keyword/([A-Za-z_0-9-])/?$" => "index.php?keyword=$1",
          "^/(.+)/?$" => "index.php/$1"
       )
    }

    Make sure you change mydomain.com to be your domain name of course. The (^|\.) at the start handles the case of www and no www. Excluding the custom-js directory is optional, but we at 619Cloud have a few custom javascript files that we use, and thus we need to exclude that directory from rewrites. Most people won’t have to exclude additional custom directories, but we showed how if you need it.

  3. Make sure you have the module mod_rewrite installed and uncommented in your main lighttpd configuration file (usually /etc/lighttpd/lighttpd.conf).
  4. Finally, give lighttpd a restart to apply the changes and the new custom mod_rewrite rules.

That is it! Make sure you remember to restart lighttpd and you should be on your way using wordpress with permalinks and lighttpd.

Tagged with:  
Page 2 of 212