WordPress.org

Forums

Handling REST with page url (2 posts)

  1. karmadude
    Member
    Posted 8 years ago #

    Is there a way to process a REST based page url. Here is what I am trying to do:

    I have the following wordpress page: http://www.counterjumper.com/blogindex

    Currently I can pass a value to the page as follows http://www.counterjumper.com/blogindex?cat=category1

    What I want to do instead is use a REST url like http://www.counterjumper.com/blogindex/category1

    So my question is if there is a way to do this?

  2. karmadude
    Member
    Posted 8 years ago #

    I figured out a solution for this using mod_rewrite. Here is the rewrite rule I used

    RewriteRule ^blogindex/(.+)$ /index.php/blogindex?cat=$1 [L]

Topic Closed

This topic has been closed to new replies.

About this Topic