How to prevent Google from indexing script output

How to prevent Google from indexing script output

If you have some scripts on your site like, for instance, my domain-info script, you often use GET parameters so people can link to them or bookmark them. This has a lot of benefits, but it creates a problem as well. Search engines will index this output, causing your server to use cycles for something…

How to remove www from your URL with mod_rewrite

How to remove www from your URL with mod_rewrite

I got a hit today for the following search query: how do you get rid of the www in url. As you can see that hits on my article about removing PHPSESSID’s, which isn’t quite what the person was looking for I guess. Here’s the code to 301 redirect the www version of your site…

PHP-APC: Speed up your web applications!

PHP-APC: Speed up your web applications!

As regular readers of this blog might know I have written quite some tools using the different API’s of search engines, and always found them quite useful. When I was implementing my sitewide search function, one of the things that bothered me that it was a bit slow. I knew that I had seen some…

Implementing a sitewide search function

Implementing a sitewide search function

Those of you coming to this site more often might have noticed a small change in the search box. It’s now implemented sitewide, and I’ve built a sitewide search functions using the Yahoo! API. It was quite nescessary because I found that people were searching for “sortable.zip” on the blog, and they wouldn’t find anything…

Why Google doesn’t like frames in your sites

Why Google doesn’t like frames in your sites

I’m currently working on a site for a client who has a site which uses frames, and he asked me why Google always linked to the “wrong” page. He did not build this site himself of course, and hasn’t got much of a clue as to how HTML works, let alone search engines. He asked…

The correct way of using conditional comments

The correct way of using conditional comments

Some people, like Jens Meiert, have argued that using conditional comments to fix layout bugs for IE is wrong. For those of you who don’t know what they are, check out my article on conditional comments. I on the other hand, think that it’s the only proper way of working around IE CSS bugs. If…

Google, WordPress and trackback URL’s

Google, WordPress and trackback URL’s

I’ve been playing around with WP-Googlestats for some blogs, and I noticed something I really didn’t think about until now. Googlebot, and other spiders, all spider the trackback URL’s that are in the meta data for posts. But since it spiders that and it’s not really sending a trackback, it get’s redirected to the post…