June 2006


Ok, I was trying to help a friend who is replacing WordPress with another system and needed to redirect the WordPress URLs for old posts to the new URL and the new posts. Doesn’t seem like that would be too much of a problem, except that the default WordPress uses html get values and not URLs to direct to a specific post. Given I’m not a mod_rewrite expert, it took a little digging and playing to figure out how to do it. Below is an example of how to do it using mod_rewrite and the .htaccess file in the root of the WordPress install:

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ^p=1$
RewriteRule ^$ http://www.thenewdomain.com/the/new/url/story.html [R=301,L]

This assumes that your hosting provider allows mod_rewrite and that .htaccess overrides are allowed. The only problem with this is that the new url get the ?p=1 part tacked on to the end of the new url after redirect. In this case it didn’t cause a problem, but it doesn’t look perfect. I’m still trying to figure out how to dump this.

Well, Microsoft patch tuesday has delivered a whole host of critical security patches to MS Windows, Office, Explorer, and others. Several of these are actively exploited and can lead to some stranger in a far away land running whatever software they want on your computer.

So go get your updates now.

Here is some more information, and there is a patch for MS Powerpoint on Mac as well:

http://www.theregister.co.uk/2006/06/14/ms_june_patch_tuesday/

http://www.microsoft.com/technet/security/bulletin/ms06-jun.mspx

http://www.us-cert.gov/cas/techalerts/TA06-164A.html

Well, more security bugs in the Mozilla, FireFox, Thunderbird batch of programs. There are about 5 bugs that could allow an evil website to run a program on your computer with your user permissions. Not actively exploited at the moment, but better to update now.

More information here.

Copyright © 2015 · All Rights Reserved · Cafaro's Ramblings