Title: Permalink changes after post is published
Last modified: August 30, 2016

---

# Permalink changes after post is published

 *  [MoDuet](https://wordpress.org/support/users/aaronbacon/)
 * (@aaronbacon)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/permalink-changes-after-post-is-published/)
 * Having an issue with on one of my sites. As of Monday when a new post is published
   the permalink is changed. This only happens a few times a day but does result
   in a 404 because the permalink is incorrect. The site is using custom permalinks.
   Here is an example:
 * Normal behavior…
    /%category%/%postname%/ /metro/communities/holidaywrecks/
 * What the link looks like when it is altered and results in a 404…
    /lifestyle_culture/
   235066/ or /metro/communities/235073/
 * Any suggestions? Its hard to pinpoint what is causing this. I’ve gone the route
   of disabling plugins but because it doesn’t always happen its hard to determine
   what/if a plugin is the issue.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [InterServer](https://wordpress.org/support/users/interservernet-web-hosting/)
 * (@interservernet-web-hosting)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/permalink-changes-after-post-is-published/#post-6788273)
 * The error could be because of incorrect .htaccess configuration. Refer the following
   WordPress documentation to correct .htaccess configuration.
 * [https://codex.wordpress.org/htaccess](https://codex.wordpress.org/htaccess)
 * The issue can also occurs if the permalink rewrite code has not been updating
   in .htaccess file due to incorrect permission. So please check if write permission
   is enabled.
 * [http://codex.wordpress.org/Using_Permalinks](http://codex.wordpress.org/Using_Permalinks)
 * The above page will give you a detailed structure of permalink settings.
 *  Thread Starter [MoDuet](https://wordpress.org/support/users/aaronbacon/)
 * (@aaronbacon)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/permalink-changes-after-post-is-published/#post-6788400)
 * Thanks for the response.
 * .htaccess – permissions are set to 644 and the rule is the default:
    # BEGIN 
   WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule
   ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /index.php [L] </IfModule> # END WordPress
 * Permalink – I have a feeling its the custom permalink that is causing the issue
   but I’m confused why it all of sudden starting happening.
 * I’m also using WP Rocket for caching, although they do not think the issue is
   caused by the plugin, they have also made some recommendations.
 *  Thread Starter [MoDuet](https://wordpress.org/support/users/aaronbacon/)
 * (@aaronbacon)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/permalink-changes-after-post-is-published/#post-6788471)
 * Still having this issue. We publish about 10 – articles a day and every day 2–
   3 articles have this issue where the url structure gets changed once the post
   is published. It doesn’t matter if the post is scheduled or not. Below is another
   example:
 * Before the post was published and saved as a draft the permalink was,
    [http://insiderlouisville.com/metro/education-community/grawemeyerpsychology/](http://insiderlouisville.com/metro/education-community/grawemeyerpsychology/)
 * However once the post’s status changed to publish the permalink was switched 
   to,
    [http://insiderlouisville.com/metro/education-community/234869/](http://insiderlouisville.com/metro/education-community/234869/)
 * Dropping the postname and replacing it with the id. As before this results in
   a 404 error. The link has since been fixed. Again, this just started last Monday
   and I have all but ruled out that this is a plugin issue.
 *  Thread Starter [MoDuet](https://wordpress.org/support/users/aaronbacon/)
 * (@aaronbacon)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/permalink-changes-after-post-is-published/#post-6788510)
 * Issue still continues. I am switching out the Theme this weekend in hopes that
   is the issue. Also, the database has a lot of old tables that are no longer used.
   I’m going to look into cleaning that as well.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Permalink changes after post is published’ is closed to new replies.

## Tags

 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [MoDuet](https://wordpress.org/support/users/aaronbacon/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/permalink-changes-after-post-is-published/#post-6788510)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
