Debug your Apache mod_rewrite Rules!

Apache mod_rewrite is incredibly powerful but it’s also a PITA if you’re trying to do something advanced. Luckily, you can log mod_rewrite’s activities and better understand why your rules aren’t working.

Just add RewriteLogLevel and RewriteLog to your Apache VirtualHost config:

 <VirtualHost *:80>
 # ...

RewriteLogLevel 8
 RewriteLog /var/log/apache2/rewrite.log

# ...

I suggest log level 8 but you can try lower. Logging rewrites will be SLOW: do not enable in production.

Sample rewrite log output:

 [perdir /var/www/] RewriteCond: input='/small/asdfsadf/avatar.jpg' pattern='^(.*)/(.*)/(.*)' => matched
 [perdir /var/www/] RewriteCond: input='/var/www/' pattern='-f' => matched
 [perdir /var/www/] rewrite 'small/asdfsadf/avatar.jpg' -> '/small/avatar.jpg'
 [perdir /var/www/] internal redirect with /small/avatar.jpg [INTERNAL REDIRECT]


Relevant Windows 7 facts

This is not meant to be a thorough report, just the highlights I found relevant related to its recent release.


  • Starter is weak (for netbooks) 32-bit only, OEM pre-install only
  • Home Basic is for emerging markets (we probably won’t see it in the US much)
  • Home Premium is what most consumers will end up with
  • Professional is the lowest version to include features such as Remote Desktop Serving, Domain Joining, and Windows XP Mode
  • Enterprise is the same as Ultimate but with volume licensing and they both include BitLocker
  • Ultimate has all possible features (of course)

Wikipedia detailed Windows 7 Version Comparison Chart


  • Supposedly 7 can be installed from a USB drive (without hacking).
  • Internet Explorer 8 can pretty much be removed – many parts are integrated into the OS, but the browser can go bye-bye.
  • The sidebar is gone but Gadgets remain, and are more efficient and movable.
  • There is an overly hyped new taskbar.