We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45063
    • 40 Posts
    I am using a regular snippet to deliver content from the remote API. For example, I want to retrieve one entry, by accessing URL:

    http://example.com/blog/article/?name=TestArticle


    "name" parameter are retrieved in snippet by simple $_GET['name'].

    Is there some way to rewrite this URL to "Friendly" syntax?

    http://example.com/blog/article/name/TestArticle


    Played with Apache Rewrite rules for two days already, but no luck. Tried sendForward, sendRedirect and couple other things.

    Thanks in advance. [ed. note: roman.khazizov last edited this post 9 years, 3 months ago.]
      • 45063
      • 40 Posts
      Found a solution using CustomRequest plugin. The only concern is make this plugin to work with relative routes. Now, Resource ID or Alias is strictly hardcoded.