WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] mod rewrite and redirect conflict when I changed permalinks structure (2 posts)

  1. blakekr
    Member
    Posted 8 years ago #

    I wonder if someone has experienced this problem and could help.

    When I moved my site to wordpress, I used the default permalink structure instead of /category/postname. Now I'm using category/postname, but I can't get 301 redirects to function because of the modrewrite stuff in the .htaccess.

    My old structure was:
    http://www.domain.com/2005/12/30/widget-name/

    My new structure is:
    http://www.domain.com/red-themes/pink-themes/widget-name/

    When I try to implement a simple redirect from one to the other, WP redirects the page to:

    /red-themes/pink-themes/widget-name/?category_name=2005/12/30&name=widget-name&page=

    which is broken of course, because of modrewrite statements like ...

    RewriteRule ^(.+)/([^/]+)(/[0-9]+)?/?$ /index.php?category_name=$1&name=$2&page=$3 [QSA,L]

    and

    RewriteRule ^(.+)/?$ /index.php?category_name=$1 [QSA,L]

    I've tried messing around with these but only succeeded in breaking my site ...

    ... I wonder if anyone else has encountered it and found a workaround?

  2. blakekr
    Member
    Posted 8 years ago #

    Hey everyone ... I wanted to mention I'm using 1.5 (I guess there are differences with mod rewrite).

    Also, not to beg in an annoying way, but I'm losing a gawdaful amount of traffic while I try to figure this out. If anyone thinks they can help if I explain it better or put up more information, PLEASE let me know ...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags