Permalink Custom Structure entry Question

Discussion in 'WordPress' started by keblack, Jan 25, 2007.

  1. #1
    Hi,

    I just added Wordpess to my site in a directory called "weight-loss-news" - when you go to Options - Permalinks - Custom Structure, what do I put in that field if I also want to record the category and postname ? Do you have to put your full url in that Custom structure field or only the new extension ? Example :

    Options,
    permalinks (custom structure field) :

    http://www.weight-loss-discovery.com/weight-loss-news/%category%/%postname%.html

    or

    %category%/%postname%.html

    or

    Something else you have found successful ?


    Please let me know as soon as possible.

    Thank you very much in advance !
     
    keblack, Jan 25, 2007 IP
  2. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #2
    just-4-teens, Jan 25, 2007 IP
  3. Bangkok Baby

    Bangkok Baby Peon

    Messages:
    322
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Wordpress suggest you to put,
    /%category%/%postname%/

    You can also use, /%category%/%postname%.html

    Note that the tag starts with /

    Also make sure that your htaccess file is updated. If your folder chmod is not set properly, then you will have to manually update your htaccess file and upload it.
     
    Bangkok Baby, Jan 25, 2007 IP
  4. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i actually use /%postid%%postname&/ that way there is never 2 duplicate titles (even if 2 post have the same slug.
     
    just-4-teens, Jan 26, 2007 IP
  5. Gold_Hunter

    Gold_Hunter Active Member

    Messages:
    147
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    63
    #5
    mod_rewrite permalinks require Apache's mod_rewrite module, which means that people running other servers cannot use them.

    I actually use : /%postname%.html
     
    Gold_Hunter, Jan 26, 2007 IP
  6. keblack

    keblack Active Member

    Messages:
    137
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #6
    Thank you for your assistance. Does anyone understand the "Slug" field and what it should be used for ?
     
    keblack, Jan 26, 2007 IP
  7. Bangkok Baby

    Bangkok Baby Peon

    Messages:
    322
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Post slug is the url text which will appear for the particular post. Normally it will be the same as your title tag. But you can change it by entering a different slug.

    Eg: say you made a post with title "Best weight loss pills available in united states of America".
    Normal case your url will appear as, Weight-Loss-Discovery.com/category/best-weight-loss-pills-available-in-united-states-of- america/

    But you feel it is too long. So in the post slug box you enter, weightloss-pills-usa.
    Your new url will be, Weight-Loss-Discovery.com/category/weightloss-pills-usa/

    Hope I explained it properly. :)
     
    Bangkok Baby, Jan 26, 2007 IP