Tag Archives: wordpress

A followup to WordPress 2.5 Permalink Redirect Plugin Issues

After being frustrated with the permalink redirect problems I was having last month I pretty much stopped writing anything. It was not just the permalink issues that caused me to stop it was the mad rush to get everything ready for our daughter who is now just days away from being born.

After quite a bit of putzing around with wordpress I finally gave up and used mod_rewrite to fix the urls. The changes I made can be explained like this.

If mod_rewrite is available, turn the rewrite engine on, set the rewrite base to the root of the url. The RewriteRule works like this, Any request made to this site for example this post: /2008/06/15/a-followup-to-wordpress-25-permalink-redirect-plugin-issues.html. The bolded part of the request is stored in $1 and redirected to /2008/06/15/a-followup-to-wordpress-25-permalink-redirect-plugin-issues with a 301 (moved permanently). the new request for /2008/06/15/a-followup-to-wordpress-25-permalink-redirect-plugin-issues is then handled normaly by wordpress.

That is the contents of my .htaccess file and so far it seems to be doing just what I wanted.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(.*).html$ /$1 [R=301,L]
</IfModule>

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

WordPress 2.5 Permalink Redirect Plugin Issues

I was just trying to convert my permalink structure from 

/%year%/%monthnum%/%day%/%postname%.html

 to 

/%year%/%monthnum%/%day%/%postname%/.

This seems like it would be a trivial thing to do with the Permalink Redirect Plugin. I followed the instructions and then was getting 404s on the old links. I don’t really have time to dig into it now but I’m guessing it has something to do with the .html in my original link structure. Maybe some regular expression issue.

I’ll take another look at it in the future. I would like to find a way to do this without manually coding mod_rewrite rules. I’m open to anyone leaving comments and I’ll be sure to post anything I find out.

Grace Elizabeth Campbell – Too cool for the womb

My wife and I went to the OB today for a scheluded appointment. My wife is 36 weeks pregnant and getting ever closer to popping like a thing of Jiffy Pop on the stove. While we were there we had it confirmed that she is measuring about 2 weeks ahead of schedule, ie she is measuring like she’s 38 weeks.

This is a good thing becuase it means we don’t have to wait as long to meet my daughter. From what I understand anything over 37 weeks is pretty much as good as full term. That being the case there really is no down side to her coming early.

This has reminded me that I need to hurry up and decide what I’m going to do on a site I bought for her when we actually decided on a name, http://www.GraceElizabethCampbell.com. Right now it has drupal 6 up and running and I think it does a fine job for displaying the few posts I have up on it.

I’ve recently been coding a plugin for WordPress to integrate the ebay EPN network so you can manage auction items in your posts. I’m leaning towards making it something like BANS but its still really early in development.

That being said, I’m really starting to like WordPress more and more. It is very good at what it does, giving you a way to post stories and posts. The admin interface, especially in 2.5 is such a pleasure to work with. Everything feels right about it. Being that it is WordPress you also get all of the other nifty plugins that other people have created, like the All in one SEO plugin and the WPG2 plugin to integrate Gallery2 into WordPress.

I suspect I’ll be making a final decision in the next week or so. I’m mostly looking for something that I can build up with her pictures and little things she does over the years.