WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Additional Permalinking (3 posts)

  1. Anraiki
    Member
    Posted 6 years ago #

    I am making a edit to my site to separate my comments from my blogs, but each blog will have their own individual comment page.

    Thus the links will go as:

    %category%/%post-title%/comments/%comment-page%.html

    which should turn into:
    http://example.com/index.php ? name=%post-title% & cp = 1

    Can someone point me to the right direction on how to do this?
    I tried editing my htacess file with the following:
    RewriteRule ^([^/]+)/([^/]+)/comments/([^/]+)?$ /index.php?name=$2&cp=$3 [L]

    but nothing seems to work :\

  2. moshu
    Member
    Posted 6 years ago #

    There is no such permalink structure tag as you put there:
    %comment-page%

    Since the comments are tied to the post's ID# I don't see how can you "separate" them.
    (when you say "blog" you mean post, right?)

  3. Anraiki
    Member
    Posted 6 years ago #

    Yes, I meant post.

    %comment-page% is my custom field.

    I am just trying to rewrite the url to look like:

    Category/Post-Title/Comment/1.html

    Where it look like this:
    %category%/%post-title%/comments/%comment-page%.html

    Thus separating the Post's Comment to:
    Comments -> Category/Post-Title/Comment/1.html
    Post -> Category/Post-Title.html

    I already have one part of it done though.

    Which is
    Post -> Category/Post-Title.html

    and the Ugly:

    Comment -> Category/Post-Title.html?cp=1

    So my GOAL is to turn the UGLY to become PRETTY.

    Before: Category/Post-Title.html?cp=1
    After: Category/Post-Title/Comment/1.html

Topic Closed

This topic has been closed to new replies.

About this Topic