Copied to clipboard

Flag this post as spam?

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


  • Islam ABofarha 2 posts 72 karma points
    Dec 28, 2016 @ 16:00
    Islam ABofarha
    0

    Url Rewrite

    Hi Everyone I am new to Umbracoand i tried to make urlrewrite to a folder and to override umbraco i added

    add name="QR" virtualUrl="~/QR" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="/QR/index.html" redirect="Domain" redirectMode="Permanent" ignoreCase="true" />

    in urlrewriting.config but still gives me 404 page

    What can i do ? Thanks

  • Damiaan 442 posts 1302 karma points MVP 6x c-trib
    Dec 28, 2016 @ 16:49
    Damiaan
    0

    Hi

    I am not sure what you are trying to archive. The redirect mode should not be "domain" as you are not redirecting to another domain. Try "Application" or "None" instead.

    That being said, I would rather not use UrlRewriting.net anymore. It's there for legacy reasons. Quote from documentation: "There already are powerful solutions to deal what that type of situations, such as Microsoft's own Url Rewrite module for IIS."

    Kind regards
    Damiaan

  • Islam ABofarha 2 posts 72 karma points
    Dec 28, 2016 @ 17:15
    Islam ABofarha
    0

    Hi Damiaan I designed a simple html page and i want to make umbraco exclude it .

    I changed the redirect mode to None and then to Application and still the page 404 shows

    Like I said I am still new to Umbraco . IO came from Joomla and still trying to know more about Umbraco

  • Damiaan 442 posts 1302 karma points MVP 6x c-trib
    Dec 28, 2016 @ 17:54
    Damiaan
    0

    Hi Welcome to the umbraco community. If you have not found the getting started documentation, then take a quick look.

    If the physical file exists umbraco should not be touching the URL. But if we solve this more like the "umbraco way", you will be - very - happy afterwards.

    1. make a document type QR and allow this under your homepage document type.
    2. Link a Template to the document type
    3. put your HTML in the document type
    4. create a QR node in the "content" section (the template will automatically be linked to this document.
    5. surf to the site and be happy

    What is the advantage is of this setup?

    1. your content editor can link easily to this QR page
    2. you can add properties on the QR document allowing the content editor to change the page content (like intro text, ...)
    3. you can embed the template in the rest of the site using a master template

    Good luck!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies