how to remove "/category/" from wordpress base URL

Discussion in 'Content Management' started by chowbow, Jan 6, 2010.

  1. #1
    Hi

    anyone know how to remove /category/ from the URL in wordpress.

    answers ive seen that are not correct:
    - remove in permalinks: no you can't do this in permalinks
    - do it in all in one seo pack: no you can't do this either

    Ive tried installing Top level categories plugin which did hide the /category/ in the url but then i got errors on those pages.

    Any ideas?
     
    chowbow, Jan 6, 2010 IP
  2. SpamHat

    SpamHat Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    AFAIK you have to hack the core to remove this.
     
    SpamHat, Jan 6, 2010 IP
  3. seco

    seco Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    in permalink page you just enter the new format of url that you need to show. Ex "%postname%.html" I'm always use this format and my url look like
     
    seco, Jan 7, 2010 IP
  4. themerie

    themerie Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Update your Wordpress, then go to /wp-admin/options-permalink.php

    On the categories one, type "/" (without the quotes). Sorted.
     
    themerie, Jan 7, 2010 IP
  5. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #5
    theapparatus, Jan 7, 2010 IP
  6. Ascendancy

    Ascendancy Active Member

    Messages:
    1,721
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    90
    #6
    This seems to work, thanks for sharing this method. It's a lot easier to hack core files if you know PHP
     
    Ascendancy, Jan 7, 2010 IP
  7. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #7
    go to permalinks and set it to custom and use %postname% in the space there. Then you are done. This will give you site.com/postname

    Nigel
     
    Nigel Lew, Jan 7, 2010 IP
  8. SpamHat

    SpamHat Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Of course you can edit the permalinks to just show the postname, but what if you want %category%/$postname% (which is arguably better) with out showing the word "category" in the categories.

    Plus doesn't this happen when viewing a category even when just using "%postname%" ?
     
    SpamHat, Jan 7, 2010 IP
  9. chowbow

    chowbow Peon

    Messages:
    119
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    that didnt work for me :-(
     
    chowbow, Jan 7, 2010 IP