Title: changing permalink structure without 404 errors?
Last modified: August 21, 2016

---

# changing permalink structure without 404 errors?

 *  [idasoderfjord](https://wordpress.org/support/users/idasoderfjord/)
 * (@idasoderfjord)
 * [12 years ago](https://wordpress.org/support/topic/changing-permalink-structure-without-404-errors/)
 * Hi guys!
 * I have a WordPress website with a blog. (WordPress 3.9.1, theme: Salient, link
   to blog: [http://creativfriskvard.se/traningsbloggen/](http://creativfriskvard.se/traningsbloggen/))
 * The permalink structure of the blog is a bit of a mess right now, and I would
   like to try to sort it up a bit. The structure is currently [http://creativfriskvard.se](http://creativfriskvard.se)**/%
   category%/%postname%/ **
    I would like to change this to [http://creativfriskvard.se](http://creativfriskvard.se)**/
   traningsbloggen/%postname%/** (traningsbloggen is the name of the blog).
 * I think this can be accomplished easily in WordPress by writing /traningsbloggen/%
   postname%/ in the options in “Permalinks” in the WordPress dashboard. But what
   I can’t figure out is how to redirect the old blog URL’s to the new ones so I
   don’t end up with tons of broken external links.
 * I’ve tried a few plugins, but they didn’t do the trick (guess they din’t work
   well with my WordPress theme or with the latest WordPress version or something).
   I’ve read that you can make 301 redirects by adding some code to the .htaccess
   file. But how would the code I need to add in .htacess look? I’ve only managed
   to find examples of how to change to [http://creativfriskvard.se/%postname%/](http://creativfriskvard.se/%postname%/)
   and not with the /traningsbloggen/ addition to the URL.
 * Does anyone have any idea of how I wold go about to do this? I’m really out of
   ideas right now. Any help is much appreciated!
 * / Ida

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [12 years ago](https://wordpress.org/support/topic/changing-permalink-structure-without-404-errors/#post-5025007)
 * see if this helps: [https://yoast.com/change-wordpress-permalink-structure/](https://yoast.com/change-wordpress-permalink-structure/)
 *  Thread Starter [idasoderfjord](https://wordpress.org/support/users/idasoderfjord/)
 * (@idasoderfjord)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/changing-permalink-structure-without-404-errors/#post-5025196)
 * Thank you Tara. I’ve read this guide and tried the “Generate Redirect” function.
   But it only generates the code to add to .htaccess for the [http://creativfriskvard.se/%postname%/](http://creativfriskvard.se/%postname%/)
   option, not the [http://creativfriskvard.se/traningsbloggen/%postname%/](http://creativfriskvard.se/traningsbloggen/%postname%/)
   option.
 * I get this code: RedirectMatch 301 ^/([^/]+)/([^/]+)$ [http://creativfriskvard.se/$2](http://creativfriskvard.se/$2)
 * Can I just add traningsbloggen/ to the code? Like this: RedirectMatch 301 ^/([
   ^/]+)/([^/]+)$ [http://creativfriskvard.se/traningsbloggen/$2](http://creativfriskvard.se/traningsbloggen/$2)
 * I’m not very familiar with coding and I know that you can mess up a lot in the.
   htaccess file, so I just want to be sure I’m on the right track before I start
   edit it.
 * Very thankful for any help!

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

The topic ‘changing permalink structure without 404 errors?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [idasoderfjord](https://wordpress.org/support/users/idasoderfjord/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/changing-permalink-structure-without-404-errors/#post-5025196)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
