WordPress.org

Ready to get started?Download WordPress

Forums

postname Permalink and Migrated Posts (6 posts)

  1. MrBluesummers
    Member
    Posted 4 years ago #

    Hey all,

    I recently migrated a large number of posts to a staging server to clean up my blog. Unfortunately, the %postname% permalink block doesn't seem to be changing with any updates I make to a migrated post's name.

    For example:
    "Growing Roses" might be a post title that I migrated over.
    The Permalink is http://www.domain.com/growing-roses/
    I change the post title to "Growing Roses in Southern California".
    The Permalink is still http://www.domain.com/growing-roses/ instead of http://www.domain.com/growing-roses-in-southern-california/ .

    Is there a way to force WordPress to update all of the permalinks automatically? What about after a post edit that involves changing the post title?

  2. Shane G.
    Member
    Posted 4 years ago #

    Hi,

    Reset your desired permalink from wordpress admin area and add this code in htaccess:

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

    After that have a check with posts and pages of your blog.

    Thanks,

    Shane G.

  3. MrBluesummers
    Member
    Posted 4 years ago #

    Hey Shane,

    Thanks for the reply! I've checked that code against my htaccess file and it appears that that was already what was in there (minus the ErrorDocument 404 line). Even with that included, the issue remains. =\

  4. MrBluesummers
    Member
    Posted 4 years ago #

    Anything else I could try?

  5. MrBluesummers
    Member
    Posted 4 years ago #

    Is this stored in the meta table? What if I just delete all of those entries?

  6. MrBluesummers
    Member
    Posted 4 years ago #

    Could still use some advice on this...

Topic Closed

This topic has been closed to new replies.

About this Topic