Title: Rewrite Rules Question
Last modified: August 19, 2016

---

# Rewrite Rules Question

 *  [wbeeler](https://wordpress.org/support/users/wbeeler/)
 * (@wbeeler)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/rewrite-rules-question/)
 * Most likely this is somewhat of a newbie question, but here goes anyways… I’ve
   looked all over and I’ve tried to understand the whole rewrite rules thing, but
   here’s what I want to do.
 * I want to make a url look like this:
    [http://www.yourdomain.com/catalog/catalog-category/this-is-an-item-from-the-catalog/](http://www.yourdomain.com/catalog/catalog-category/this-is-an-item-from-the-catalog/)
 * Can someone point me in the direction of what I’m looking for or maybe give me
   a basic low-down on what I’m missing. Thank you.

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

 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/rewrite-rules-question/#post-959213)
 * If your WordPress directory is named **catalog**, then you can do this with a
   custom permalink structure:
 * `/%category%/%postname%/`
 * Also see: [http://codex.wordpress.org/Using_Permalinks](http://codex.wordpress.org/Using_Permalinks)
 *  Thread Starter [wbeeler](https://wordpress.org/support/users/wbeeler/)
 * (@wbeeler)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/rewrite-rules-question/#post-959395)
 * Thank you. I read through the link provided. I understand the basics of permalink
   usage, but what I’m struggling with is how to change “index.php?n=8” or whatever
   to my nifty little “catalog/widgets/my-cool-little-widget” link. From a coding
   stand point I mean… Am I saying all of this right, I might not be explaining 
   it correctly. I appreciate the help anyways.
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/rewrite-rules-question/#post-959399)
 * You are using non-pretty permalinks, and if you want to change them, go to Dashboard-
   > Settings -> Permalinks and change them. Do not try to use your own custom .
   htaccess rewrite rules to make your own pretty permalinks.
 *  Thread Starter [wbeeler](https://wordpress.org/support/users/wbeeler/)
 * (@wbeeler)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/rewrite-rules-question/#post-959516)
 * I think I’ve mis-explained the problem. I’m actually working on using this in
   a plugin. I want to create pages from my database tables that are different from
   the blog. I want to create a catalog. Someone can add items in the backend, and
   then they show up in the front (kind of like a shopping cart, but a little different).
   What happens in the front with the url is why I’m asking the question. I’m trying
   to make it something like this “domain.com/catalog/%category%/%itemname%/”. I’m
   basically unsure where to start in doing this. I apologize for the confusion.

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

The topic ‘Rewrite Rules Question’ is closed to new replies.

## Tags

 * [mod_rewrite](https://wordpress.org/support/topic-tag/mod_rewrite/)
 * [rewrite rules](https://wordpress.org/support/topic-tag/rewrite-rules/)
 * [slugs](https://wordpress.org/support/topic-tag/slugs/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [wbeeler](https://wordpress.org/support/users/wbeeler/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/rewrite-rules-question/#post-959516)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
