Forums

permalink and pages (3 posts)

  1. rafikmassoud
    Member
    Posted 3 years ago #

    hey everyone,

    I was coding away the other day and I ran into a snag. I have my site running on wp. I'm adding a blog page titled blog. So for the sake of friendly URLs, I have my permalink setup like this:
    /blog/%postname%/
    the problem is when i set it up like this, the second page of the blog has a URL like this:
    http://domain.com/blog/page/2
    but instead of going to page 2, it goes to the 404 page because the second page's URL is really this:
    http://domain.com/page/2
    is there a way to solve this problem and have the URL like this:
    http://domain.com/blog/page/2

  2. stvwlf
    Member
    Posted 3 years ago #

    Hi

    Set your permalinks up like this /%postname%/

    Go to Admin / Settings / reading
    Make your posts page be Blog
    If its already set up that way, removing Blog from the permalink should resolve the problem. If not, these two things should accomplish what you want.

  3. rafikmassoud
    Member
    Posted 3 years ago #

    hey,

    that worked. it fixed the page problem, but now the post URL is like this now:
    http://domain.com/post-name/

    is there a way to make the post link like this:
    http://domain.com/blog/post-name/

    and have the page URL like this:
    http://domain.com/blog/page/2

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags