Category Archives: Programming – General

mod_rewrite to force www redirect index.php to domain

Here is a quick mod_rewrite example that forces www and redirects index.php to / (this fixes two canonicalization issues at one time). ?View Code PHPRewriteEngine on RewriteCond %{HTTP_HOST} !^www.site.com$ RewriteRule ^/(.*)$ http://www.site.com/$1 [R=301] RewriteRule ^/index\.php$ http://www.site.com/ [R=301,L]

PHP Code Get Most Recent WordPress Post

PHP Code Get Most Recent WordPress Post This is a quick example using only vanilla PHP.  There are more dynamic ways to do this using RSS classes built into PHP addons, which I won’t go into detail here.  Instead, we will just use vanilla PHP, and parse the XML by hand. On to the code, [...]

Intel Shows Off 48-Core CPU

Intel shows off their 48-core processor; I get 48-kinds of jealous.