Title: Theme is breaking permalinks
Last modified: August 21, 2016

---

# Theme is breaking permalinks

 *  [kemie](https://wordpress.org/support/users/kemie/)
 * (@kemie)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/theme-is-breaking-permalinks/)
 * I’m tearing my hair out.
    I’m developing a site with a custom theme, derived 
   from the [Bones theme](http://themble.com/bones/) (not a child theme, a modification)
   The problem is I cannot get clean (%postname%) permalinks to work on pages or
   posts– I get 404s. Oddly enough they do work for the Custom Post Types and Taxonomies
   I’ve set up.
 * I have tried everything, deleting the .htaccess, adding things manually, uninstalling
   all the plugins, and finally finally came to the conclusion that it is something
   in the theme. Switching to twentyeleven or twentytwelve restores the permalink
   functionality.
 * Buy I have no clue what in my theme could be interfering with this. I have not
   expressly set anything on permalinks on the theme or functions. Any clues as 
   to where in the theme I can look?

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

 *  [DJDoubleXL189](https://wordpress.org/support/users/djdoublexl189/)
 * (@djdoublexl189)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/theme-is-breaking-permalinks/#post-3836695)
 * If the site works with the default permalink setting (that page id URL), then
   the most likely solution is that your .htaccess file isn’t writable. Make sure
   that your permissions are set correctly on the .htaccess.
 *  Thread Starter [kemie](https://wordpress.org/support/users/kemie/)
 * (@kemie)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/theme-is-breaking-permalinks/#post-3836803)
 * Thanks! That wasn’t it, since permalinks did work with the default theme. I finally
   found the culprit. When registering my CPT I used the line
 * `'rewrite' => array('slug' => ''),`
 * commenting it out made my permalinks work again.

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

The topic ‘Theme is breaking permalinks’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [kemie](https://wordpress.org/support/users/kemie/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/theme-is-breaking-permalinks/#post-3836803)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
