Forums

Changing Links? (15 posts)

  1. bk
    Member
    Posted 4 years ago #

    Well, my Portfolio section of the site has a link like this http://mydomain.com/?page_id=9

    Is it possible to change it to http://mydomain.com/portfolio.php?

    Thank you, in advance. :)

  2. moshu
    Member
    Posted 4 years ago #

    No. I mean if the Page's title is "Portfolio" and you are using permalinks it will be possible to have something like
    example.com/portfolio

  3. bk
    Member
    Posted 4 years ago #

    So how would I do that again? I think I should try. =/

  4. miklb
    Forum Concierge
    Posted 4 years ago #

  5. bk
    Member
    Posted 4 years ago #

    Well, this is what I have enabled. :S
    But isn't that only for posts and comments?

    /%year%/%monthnum%/%day%/%postname%/

  6. moshu
    Member
    Posted 4 years ago #

    If permalinks are enabled they will work for Pages, too, and the slug created from the title (or modified by you) will be used in the link.
    However, read the Note from here:
    http://codex.wordpress.org/Pages#Creating_Pages

  7. bk
    Member
    Posted 4 years ago #

    I have enabled permalinks (they won't work for pages) and the slug. For example, Portfolio page's slug is portfolio. Do I have to change it to portfolio.php?

  8. moshu
    Member
    Posted 4 years ago #

    If they don't work for Pages, then your .htaccess file is not writable. Did you follow the link I've posted above?
    Foe the second question I answered here.

  9. bk
    Member
    Posted 4 years ago #

    I did follow the link, don't really get it though. So how do you make your .htaccess file writable? Is it something to do with chmodd?

  10. moshu
    Member
    Posted 4 years ago #

    Yes. And you can read a lot about it on the Codex, just have to search.

  11. bk
    Member
    Posted 4 years ago #

    So the .htaccess file is writable now. I updated the permalinks again. What now?

  12. moshu
    Member
    Posted 4 years ago #

    Now be happy :)
    (Go to your horizontal nav code and change the links from "page_id=XX" to the "slug" of the Pages.)

  13. bk
    Member
    Posted 4 years ago #

    Now every page is the "Contact" page. LoL. :P
    Where did I mess up?

  14. moshu
    Member
    Posted 4 years ago #

    You have a reading problem, young man :)
    NO PAGE ID! just the slug...
    So it isn't "page_id=portfolio" - just "portfolio"

  15. bk
    Member
    Posted 4 years ago #

    Oopss. Very sorry. My bad.

    Works now. Thanks a bunch!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.