Title: thias_'s Replies | WordPress.org

---

# thias_

  [  ](https://wordpress.org/support/users/thias_/)

 *   [Profile](https://wordpress.org/support/users/thias_/)
 *   [Topics Started](https://wordpress.org/support/users/thias_/topics/)
 *   [Replies Created](https://wordpress.org/support/users/thias_/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/thias_/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/thias_/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/thias_/engagements/)
 *   [Favorites](https://wordpress.org/support/users/thias_/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [rewrite rule for page url with categoryname](https://wordpress.org/support/topic/rewrite-rule-for-page-url-with-categoryname/)
 *  Thread Starter [thias_](https://wordpress.org/support/users/thias_/)
 * (@thias_)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/rewrite-rule-for-page-url-with-categoryname/#post-5746604)
 * This code enables page categories:
 *     ```
       function page_categories() {
       // Add tag metabox to page
       register_taxonomy_for_object_type('post_tag', 'page');
       // Add category metabox to page
       register_taxonomy_for_object_type('category', 'page');
       }
        // Add to the admin_init hook of your theme functions.php file
       add_action( 'admin_init', 'page_categories' );
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [rewrite rule for page url with categoryname](https://wordpress.org/support/topic/rewrite-rule-for-page-url-with-categoryname/)
 *  Thread Starter [thias_](https://wordpress.org/support/users/thias_/)
 * (@thias_)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/rewrite-rule-for-page-url-with-categoryname/#post-5746574)
 * Hi Calvin!
    Thanks you for your reply. The problem is that it are pages (not 
   posts) still have just the [http://www.domain.com/pagename](http://www.domain.com/pagename)
 * and i would like to have [http://www.domain.com/categoryname/pagename](http://www.domain.com/categoryname/pagename)
 * The premalink settings dont change the url for the pages, or atleast not in my
   install.
 * Can you point me in the right direction?

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