MrBluesummers
Member
Posted 2 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?
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.
MrBluesummers
Member
Posted 2 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. =\
MrBluesummers
Member
Posted 2 years ago #
Anything else I could try?
MrBluesummers
Member
Posted 2 years ago #
Is this stored in the meta table? What if I just delete all of those entries?
MrBluesummers
Member
Posted 2 years ago #
Could still use some advice on this...