Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lev Nuznyy 19 posts 122 karma points
    May 02, 2019 @ 02:41
    Lev Nuznyy
    0

    Friendly url with two or more parameters

    Hello I write this rule here but it does not work

    <rule name="paginationTags" stopProcessing="true">
          <match url="^tags/([_0-9a-z-]+)/page([0-9]+)/?$" />
          <action url="tags/?tag={R:1}&amp;page={R:2}" type="Rewrite" />
    </rule>
    

    enter image description here

    I'm trying to get from this url

    http: // localhost: 50554/tags/?tag=xxx&page=1
    

    Here is such

    http: // localhost: 50554/tags/tag1/page1
    

    but I get 404, what am I doing wrong?

  • Lev Nuznyy 19 posts 122 karma points
    May 07, 2019 @ 13:00
    Lev Nuznyy
    0

    Up

  • Tarik 196 posts 840 karma points c-trib
    May 08, 2019 @ 10:14
    Tarik
    0

    Lev Nuznyy, the error message means that you didn't assign a template for your content (document type).

    I suggest at this stage to try a simple Umbraco example like CV Exam package which contains one page and see how it works.

    After testing it with your aim of paging then try one the starter kits packages which contains many pages.

  • Lev Nuznyy 19 posts 122 karma points
    May 08, 2019 @ 10:27
    Lev Nuznyy
    0

    The template is there, and the page is there.

    That's how it works:

    http: // localhost: 50554/tags/?tag=text1&page=2
    

    I'm trying to do so

    http: // localhost: 50554/tags/text1/page2
    
  • Lev Nuznyy 19 posts 122 karma points
    May 16, 2019 @ 17:11
    Lev Nuznyy
    0

    Up

Please Sign in or register to post replies

Write your reply to:

Draft