neil.lolin.net

infecting the internet one day at a time.

Wordpress Redirect Loop and Flickr Photo Album Plugin

Ads

A redirect is when a page you have requested has moved and it automatically sends you to where it has moved.

A redirect loops happens when your page is redirecting to itself.

Wordpress has a share of problems with redirect loops and this one just suffered from one. I have looked up a solution and hopefully it would work for you.

Permalinks are search engine friendly, that’s why it is a good idea to use them. Your address such as my initially frustrating Wordpress redirect loop post here has the url:

http://neil.lolin.net/2008/07/09/my-photos-pages-is-redirecting-endlessly

When permalinks go bad, they give you a “page not found”, a page cannot load, or redirect loop problem.

This tackles TantanNoodles Flickr Photo Album plugin for Wordpress and it’s horror of redirect looping.

This wonderful photo is from Kurafire.

Solution:

Add a trailing slash at the end of the permalink.

When you log in to your Wordpress Dashboard, go to settings - permalinks and make sure your structure has an ending “/” to it. For example:

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

NOT

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

Save changes.

My Wordpress has a rather strange problem. After saving, I browse through the other tabs in the Wordpress Dashboard like Write, Manage or whatever. Then I go back to
settings - permalinks and find my ending trailing slash is GONE!

So again, this defeats the purpose of keeping the trailing slash at the end. I do not know if this is bug or mine is an .htaccess problem or whatever. The point is you need the trailing slash at the end in order for the Flickr Photo Album to work properly.

2 Solutions:

1st solution:

If you have access to your Wordpress dB via phpmyadmin in your server’s control panel, search for “postname” and you’ll find the table where your permalink structure is in. Simply edit that entry and add the trailing slash at end.

Note that this will again disappear if you browse through the permalink settings page of you Wordpress dashboard again!

2nd solution: (better solution)

Install the Meta Robots Wordpress Plugin and enable “Enforce a trailing slash on all category and tag URL’s“. This will force your menu links to have the trailing slash at the end if your permalinks structure doesn’t have it.

I use this one for my photos section to solve the Wordpress redirect loop I have experienced last night.

While it doesn’t solve the mystery of my disappearing trailing slash, it still does the job.

July 10th, 2008
Topic: internet, photography Tags: , ,

2 Responses to “Wordpress Redirect Loop and Flickr Photo Album Plugin”

  1. - Says:

    Thanks this helped me today.

    [Reply]

  2. Steven Roddis – Wordpress, Permalinks and Infinite Redirects Says:

    [...] So after pages of irreverent Google results I came across a solution. [...]

≡ Leave a Reply

CommentLuv Enabled