Wordpress URL Structure

Discussion in 'WordPress' started by HungryMinds, Oct 1, 2010.

  1. #1
    Last edited: Oct 1, 2010
    HungryMinds, Oct 1, 2010 IP
  2. craigedmonds

    craigedmonds Notable Member

    Messages:
    706
    Likes Received:
    135
    Best Answers:
    0
    Trophy Points:
    235
    #2
    Yes but the best way is to define permalinks inside your settings.

    Unders Settings > Permalinks you will see "Common Settings".

    Inside the field "Custom Structure" put the following /%postname%/.

    This will then create pretty urls for you, much better than /page2/

    If you wanted to make you urls like http://localhost/wordpress/page2/ based on the id's, then you would use a .htaccess file for that using mod rewrite.
     
    craigedmonds, Oct 1, 2010 IP
  3. HighRollerT

    HighRollerT Guest

    Messages:
    235
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Craig is Right on...use the /%postname%/ structure in the settings

    then after you write a post or page, you will be able to edit the URL into anything you wish
     
    HighRollerT, Oct 1, 2010 IP
  4. ilook

    ilook Well-Known Member

    Messages:
    1,602
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    165
    #4
    I agree guys, the permalink should be /%postname%/
     
    ilook, Oct 2, 2010 IP
  5. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #5
    Under Settings > Permalinks > Custom Settings > /%postname%/ or /%category%/%postname%/
     
    Jalpari, Oct 2, 2010 IP
  6. brendan6756

    brendan6756 Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yes i agree with Jalpari the best permalink is: /%category%/%postname%/
     
    brendan6756, Oct 2, 2010 IP