Copied to clipboard

Flag this post as spam?

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


  • Jannik Larsen 4 posts 74 karma points
    Apr 10, 2017 @ 09:07
    Jannik Larsen
    0

    Custom URL's ending in .HTML

    Hello everyone

    We are currently in the process of converting our Magento site to an Umbraco site (tough one, I know). We would like to keep our urls the same, but the problem is, that our product page (which is dynamic) currently ends in something like: www.url.com/product-name.html I would like a controller that gets hit, every time someone enters .html after the parameter of the url. Is this possible?

  • Jamie Pollock 172 posts 836 karma points c-trib
    Apr 10, 2017 @ 19:50
    Jamie Pollock
    0

    Hi Jannik,
    Have you considered an IIS rewrite rule? Which takes /product-name.html to rewrite to /product-name?

    Then Umbraco's URL routing pipeline will kick in to try and find the page within Umbraco.

    Thanks,
    Jamie

Please Sign in or register to post replies

Write your reply to:

Draft