Archive for January, 2009

How to use URL rewriting to control access to www

Having your site respond with content to requests on both domain.tld and www.domain.tld can give the appearance to search engines that your site has duplicate content, so don’t do it. Here’s how:

How to run a Symfony site without the .htaccess file

I recently wrote a tip about how to overcome issues when working with mod_rewrite, PHP_SELF, and configuration settings within the main server or virtual host context as is recommended in the Apache documentation on Per-directory Rewrites (scroll down to the notes). This post will explain the specific changes needed to do this for the Symfony [...]

Tip: Use PHP_SELF and mod_rewrite without using .htaccess

Want to use your favorite PHP framework without it’s .htaccess file by moving those settings into your httpd.conf but it’s not quite working out? This is probably because some of those settings in the .htaccess file are rewrites and the PHP framework you are using uses a front controller that relies on the PHP_SELF server [...]

Tip: Turn PHP output_buffering off when using Elgg

I created a comment plugin for Elgg 1.2 with AJAX effects, but it wouldn’t load the return value from the form submission properly—it would load the entire dashboard page. For some reason Elgg was outputting the location http header causing a redirect. The solution? Set PHP’s output_buffering setting to ‘off’.

Is Microsoft Vista Dead?

It is according to a recent article entitled CNN – is Microsoft Vista dead?
But that makes the assumption that just because Microsoft is replacing Vista, Vista is dead/abandoned and, because it is being replaced, it is an inferior product. Or maybe they are thinking that because Vista is so new and is already being replaced [...]

Subscribe to RSS Feed Follow me on Twitter!