Fix for wordpress breaking mod_rewrite/friendly URLs

If you’ve just upgraded WordPress and find that when you browse your blog your web browser displays the following message

“the server is redirecting the request for this address in a way that will never complete.”

To fix this all you need to do is edit one file in the WordPress installation.

The problem is due to the canonical redirection functionality, it redirects incorrect permalinks to their correct ones.

To disable that functionality edit /wp-includes/canonical.php and comment out the last line:
[code]add_action(‘template_redirect’, ‘redirect_canonical’);[/code]
change to:
[code]//add_action(‘template_redirect’, ‘redirect_canonical’);[/code]

Here’s the post on the WordPress support forum that details the problem and solution

This post was at first intended as a note to myself, so that in the future when i update WordPress and find my blog does an infinite loop then I can quickly change it.
I then decided to keep the post open, so that others with the same problem can quickly search and fix it!

Getting ready for nights!

From Sunday I will be working from 9pm to 9am for the next four days. This is to help with the refit that is going on at the moment.

It is 5 o’clock in the morning and I’ve been up for and hour now! I’m going to be going back to sleep, if thats possible, at 4pm and then waking up again at 10pm so that I can then hopefully stay awake all night!

I will be taking this free time as a chance to update my website as I have a list of tweaks and fixes to do.
One of them is a subscription to this blog so that casual visitors and readers can receive emails when I finally write a new post!

I have already added the plugin, subscribe2, to wordpress, and now I’m just testing it out with this post!

I’ll post again tomorrow night.
Until then, stay awake!

Nothing stays secret for long..

Nothing stays secret on the web for long
Ive been busily setting up my on blog on my website using WordPress, and importing posts from this blog using the RSS feed.

This morning i checked my emails and i had two emails from PHP Classes telling me that they had a trackback ping from my blog.
I’ve just looked in the 404 error database, and I’ve seen three different user-agent strings from bots that crawl blogs.
ping.blo.g
Blogslive (info@blogslive.com)s/2.0
Yahoo-Blogs/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; http://help.yahoo.com/help/us/ysearch/crawling/crawling-02.html )

Here’s the one from PHP Classes: httpclient (http://www.phpclasses.org/httpclient $Revision: 1.63 $)

I’ll make this “official” when I have the new site style up and running

Bye for now…