Title: WP folder structure
Last modified: August 19, 2016

---

# WP folder structure

 *  [mattisb](https://wordpress.org/support/users/mattisb/)
 * (@mattisb)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/wp-folder-structure-1/)
 * I recently tried to migrate my wordpress.com to a self-hosted, and I am infinitely
   confused & frustrated.
 * ALL of the permalinks are broken – the catagories, tags, pages, attachments, 
   etc. nothing is linked properly. It says that it uploaded properly and I have
   the permalinks set to year/month/day/name, but it’s like the folder structure
   wasn’t created under the domain. E.g. blog.domain/year or blog.domain/category
   or blog.domain/tag don’t exist. What is going on or what am I doing wrong?
 * Thanks in advance

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/wp-folder-structure-1/#post-1455283)
 * WordPress doesn’t use a folder structure. The base urls and your custom permalink
   structure is stored in your database. Try resetting your custom permalinks back
   to the default setting. If that works, then try reading [Using_Permalinks](http://codex.wordpress.org/Using_Permalinks)
   before setting a custom permalink structure back up again.
 *  Thread Starter [mattisb](https://wordpress.org/support/users/mattisb/)
 * (@mattisb)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/wp-folder-structure-1/#post-1455295)
 * Thanks again esmi,
 * I went into mySQL database to actually see where the heck everything was located.
   For whatever reason, when I imported the wordpress.com blog, it imported them
   under the default permalink structure: i.e. blog.com/?p=123, even though I specified
   the year/month/day structure. I changed the permalink structure to the default
   setting and now everything works. But the question remains, how do I switch everything
   over to the year/month/day/title structure like I had on my wordpress.com blog
   so that all the URLs match?
 * Thanks again
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/wp-folder-structure-1/#post-1455303)
 * > it imported them under the default permalink structure
 * That’s correct. WP stores the base urls. The pretty permalinks are then pretty
   much applied on top of those basic urls using re-rewrites.
 * Have you set up a custom permalink structure? If so, did you get any messages
   about making .htaccess writeable?
 *  Thread Starter [mattisb](https://wordpress.org/support/users/mattisb/)
 * (@mattisb)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/wp-folder-structure-1/#post-1455309)
 * I opened up a help ticket w/ my host & they tell me that I can’t do a re-write
   on my windows based hosting plan….I didn’t get any messages about making .htaccess
   writable. in the WP control panel I played around w/ teh custom permalink structure,
   but it obviously doesn’t modify the database or .htaccess file. Is that why I’ve
   been having so much trouble? because the .htaccess file is unwritable? Essentially
   I have to modify the .htaccess file, correct?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/wp-folder-structure-1/#post-1455310)
 * If you’re using a Windows server, you probably won’t have an .htaccess file. 
   See [http://codex.wordpress.org/Using_Permalinks#Permalinks_without_mod_rewrite](http://codex.wordpress.org/Using_Permalinks#Permalinks_without_mod_rewrite)

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

The topic ‘WP folder structure’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/wp-folder-structure-1/#post-1455310)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
