WordPress.org

Ready to get started?Download WordPress

Forums

Permalink Category Display Help Request (4 posts)

  1. jeremymgp
    Member
    Posted 8 years ago #

    Hi,

    I'd like to setup my blog to look like a static site, so I've added the permalink structure:
    /%category%/%postname%.html
    This means that whenever I click on a post, it's in it's own category with a nice .html ending, for example:
    http://www.sitename.com/categoryname/postname.html

    Howver, when I click on a category, an extra "/category/" folder is inserted into the URL rewrite. The category should read:
    http://www.sitename.com/categoryname/
    but instead it reads:
    http://www.sitename.com/category/categoryname/

    The extra text "/category/" is being inserted by mistake.

    Also I'd like to have my category urls have an index.html file extension as well, for example:
    http://www.sitename.com/categoryname/index.html
    rather than just:
    http://www.sitename.com/categoryname/
    Is this possible?

    Thanks a lot for your help,

    Cheers,
    Jeremy

  2. Chris_K
    Member
    Posted 8 years ago #

    Suppose, as admin, you visited your Options -> Permalinks page.
    And scrolled down a bit.
    And noticed the blank field labeled "Category Base".

    What you want isn't possible. If it was, you'd have WP "Pages" crashing into Wp "Categories" and it would be an absolute trainwreck. However, if you don't dig "Category", you can type something else into that field instead.

  3. dopecoder
    Member
    Posted 8 years ago #

    i dont use pages in wp and would like to have my site category listed as

    http://www.sitename.com/categoryname/

    instead of

    http://www.sitename.com/category/categoryname/

    there must be a wayaround or hack for that,

    would anyone know how to do that using mod rewrite if not possible through permalinks

  4. dopecoder
    Member
    Posted 8 years ago #

    hi i just found a way around and works perectly for me, checkout http://www.no1guide.co.nz

    found the workaround from http://wordpress.org/support/topic/18304?replies=26

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.