locked
web.config file is rendering the page when a partial url is correct RRS feed

  • Question

  • User1494574938 posted

    We are having an issue with page redirect.

    There are a lot of products and categories on the site and we have a web.config file that redirects and rewrites the pages as per the category or product. All works good like when the page url for the category or the products is right , but when we add "anything" after the URL it does not give a page error or 404 not found, but it shows the last good page from the url.

    for example:

    https://websitename/sub-page/2w57w45uwas4jn

    it still opens and shows the page as in

    https://websitename/sub-page/

    And it should go to a 404 page. The problem persists on all of these type of pages.

    Another example:

    https://websitename/sub-page/

    can open with everything you write again after the "/"

    https://websitename/sub-page/aetgashgwasegh

    Any help here please 

    Monday, May 24, 2021 2:48 PM

All replies