1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to change page id of wordpress blog?

Discussion in 'WordPress' started by iamobsessive, Sep 4, 2010.

  1. #1
    I want to change my page id of wordpress blog?

    for eg. - my page id is : - www.mysite.com/?p=9 but i want to change ww.mysite.com/?p=8 because there is no page with this(ww.mysite.com?p=8) id..
     
    iamobsessive, Sep 4, 2010 IP
  2. WallaceYeung

    WallaceYeung Notable Member

    Messages:
    3,377
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    230
    Digital Goods:
    1
    #2
    the page/post is automatic generation, you can change it.
     
    WallaceYeung, Sep 4, 2010 IP
  3. schezan

    schezan Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's not important for your blog/site.
    But u still can change the page id over the Phpmyadmin page.
     
    schezan, Sep 5, 2010 IP
  4. craigedmonds

    craigedmonds Notable Member

    Messages:
    703
    Likes Received:
    131
    Best Answers:
    0
    Trophy Points:
    235
    #4
    I would just add a 301 redirect into my htaccess file.

    In the root of your wordpress web site, there is a file called .htacess.

    1. Download the file to your local machine.
    2. Open the file in notepad.
    3. Add the code below to it
    4. Reupload the file to the root of your site

     
    craigedmonds, Sep 5, 2010 IP
  5. psharma

    psharma Prominent Member

    Messages:
    1,955
    Likes Received:
    85
    Best Answers:
    4
    Trophy Points:
    345
    #5
    Page ID is automatically generated and you can change the url structure in any way you want except the ID of page.
    If you still want to change the ID of the page (and you said that ID = 8 is available ) the only way to do that is to make the changes in the database.
    Also i dont think there are plugins to do that.
     
    psharma, Sep 5, 2010 IP
  6. adbox

    adbox Well-Known Member

    Messages:
    906
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #6
    Why not change the permalink sdetting over to words instead of ids. This is better for ranking and is prettier too.
     
    adbox, Sep 6, 2010 IP
  7. ayekaye01

    ayekaye01 Peon

    Messages:
    214
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i agree with him(adbox)..better ranking.
     
    ayekaye01, Sep 6, 2010 IP
  8. craigedmonds

    craigedmonds Notable Member

    Messages:
    703
    Likes Received:
    131
    Best Answers:
    0
    Trophy Points:
    235
    #8
    Yes, I agree with this totally. Unless you have a specific reason for using page id's in your url's, then you should really consider switching to a custom url structure for your permalinks. It increases your chance of ranking for your keyword and as adbox said, its prettier.
     
    craigedmonds, Sep 7, 2010 IP
  9. budianduk

    budianduk Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    use permalink on setting menu
    ex %postname%

    thx
     
    budianduk, Sep 7, 2010 IP
  10. c4cyber

    c4cyber Well-Known Member

    Messages:
    1,025
    Likes Received:
    24
    Best Answers:
    1
    Trophy Points:
    140
    #10
    Please visit https://codex.wordpress.org/Database_Description#Table:_wp_posts
    ID is the column that holds id for page/posts. You can change post id from changing it in table using phpmyadmin.
     
    c4cyber, Dec 21, 2018 IP
  11. AlphaNine_Vini

    AlphaNine_Vini Active Member

    Messages:
    218
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    88
    #11
    When you change the ID of page make sure there is no duplicate id in the database. As I can see your mentioned page id 8 don't exist. That should be fine.
    You can change from PHPmyadmin
     
    AlphaNine_Vini, Dec 22, 2018 IP