Forums

Page urls: getting friendly names (11 posts)

  1. antonio.trotta
    Member
    Posted 3 years ago #

    Hi,

    Here is my question. I'm using the following system:

    Apache: 2.2.11
    Php: 5.3
    Mysql: 5.1.3.6

    Issue:
    I don't use WordPress for blogging purposes. I only use it to build a website. I'm not getting how to generate friendly urls for my site.

    I have already gone through the whole Permalinks set of instructions but it doesn't make sense to me. It looks like it only refers to things such as category, date or author but as I said I'm not using it for blog purposes so I was wondering if there is a way to make this work in another way.

    Thanks

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    If you only intend to publish Pages, you don't need to worry to much about custom permalink structures. Just choose one of the standard settings (e.g Numeric) and by default, WordPress will construct friendly urls for Pages based on their titles

  3. antonio.trotta
    Member
    Posted 3 years ago #

    Hi esmi
    Thanks for getting back. I followed your suggestion but it didn't work. I have created 3 different pages: Home, PageOne, PageTwo.

    They all appear from the top navigation but every time I click on one of the PageOne or PageTwo a 404 is generated:

    "The requested URL /wordpress/pagetwo/ was not found on this server."

    I have got the my wordpress folder installed locally on the following path of my machine:

    C:\dev\www\wordpress

    I hope this will help to solve this scenario. Thanks in advance.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Edit either PageOne or PageTwo. What is appearing in the page permalink line (immediately below the page title input box)?

  5. antonio.trotta
    Member
    Posted 3 years ago #

    I I set the permalink to the numeric value, in this case the PageOne and PageTwo are showing the friendly name following the path to the page:

    "Permalink: http://localhost/wordpress/pagetwo" Next to this url there are two buttons, to preview the page and save changes made to the url.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    The permalink suggests that page link is, indeed, correct. Perhaps you have a problem with rewrites on your local server?

  7. antonio.trotta
    Member
    Posted 3 years ago #

    Any idea how should I do to change it? Any post or reading that you could suggest?

    Thanks

  8. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

  9. antonio.trotta
    Member
    Posted 3 years ago #

    I found the solution for this. I needed to set the mod_rewrite under my Apache server to ON.

    Simple.

    Thank again for ypur help esmi.

    Antonio

  10. keigh
    Member
    Posted 3 years ago #

    If you are only using static pages, you can use /title as your permalink structure, then your urls would be:

    domain.com/title whatever you enter as your page title, "about us" for example would show up as:

    domain.com/about-us

    NOTE: This causes issues if you later add a blog as this type of custom structure doesn't seem to support blog entry titles.

  11. keigh
    Member
    Posted 3 years ago #

    Hi - samboll provided the perfect fix if you want pretty permalinks for static pages and blog posts. use /%postname%/ as your custom permalink structure.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.