Wordpress permalink 301 redirect issue on IIS

Discussion in 'WordPress' started by dominion4040, Feb 9, 2010.

  1. #1
    I recently changed my permalink from default:
    http://www.worthprotectionsecurity.com/blog/?p=930

    to the following: /%year%%monthnum%/%postname%/
    http://www.worthprotectionsecurity.com/blog/200904/vanessa-hudgens-taser-self-defense-advocate/

    I am now unable to get the 301 redirection working.

    If I use the plugin Redirection # Version: 2.1.25 by Author: John Godley, all my links become 404 redirected to my homepage.

    If I use Dean's Permalinks Migration v1.0 by Dean Lee, it doesn't seem to do anything. I tried several different PermalinkMigration settings, and nothing seems to matter.

    I have 100s of posts, so I really need to get these properly 301 redirected, but it appears most of the easy ways are not IIS friendly.

    My sysadmin (I do not have server access on host) made the following file (.rewrite) to help out the the permalinks, but i'm not positive what it does:

    # BEGIN WordPress
    RewriteEngine on

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule . index.php [L]
    # END WordPress

    So right now I am stuck with duplicate content that I can't redirect.

    Anyone have any insight on what I can do from the blog level, or what I can tell the IIS sysadmin that needs to do?

    Thanks
     
    dominion4040, Feb 9, 2010 IP
  2. dominion4040

    dominion4040 Member

    Messages:
    120
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    33
    #2
    Ok, I found Scott Yang's Permalink Redirect and it "appears" to do what I thought it should. The default permalink /?p=N now changes to the right permalink.

    However when I tried to check the 301 validity, I get the following:

    HTTP/1.1 200 OK =>
    Connection => close
    Date => Wed, 10 Feb 2010 02:55:06 GMT
    Server => Microsoft-IIS/6.0
    X-Powered-By => PHP/5.2.4
    X-Pingback => http://www.worthprotectionsecurity.com/blog/xmlrpc.php
    Content-Type => text/html; charset=UTF-8
    Set-Cookie => wwsgd_visits=1; expires=Thu, 10-Feb-2011 02:55:06 GMT; path=/blog/
    Refresh => 0;url=http://www.worthprotectionsecurity.com/blog/200904/vanessa-hudgens-taser-self-defense-advocate/

    I know the 200 OK is because the /?=N default is always a valid permalink, unlike the custom ones that can be broken if changed.

    I guess my question now is, is this truly a valid 301 redirect or just some weird redirection trick that Google is going to slam me for? I want to make sure all of my PR and index pages actually transfer.

    Thanks
     
    dominion4040, Feb 9, 2010 IP