Copied to clipboard

Flag this post as spam?

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


  • J 445 posts 862 karma points
    May 26, 2020 @ 16:18
    J
    0

    Preview not working with unpublished page

    I have 2 sites within 1 umbraco. Both have different URLs. I have added rewrites for both domains under umbraco rewrite config.

    One of the site has its parent page unpublished but i cant preview it as it throws a 404.

    Is there a workaround for this?

    Thanks

  • Amir Khan 1282 posts 2739 karma points
    May 26, 2020 @ 22:41
    Amir Khan
    0

    Can you send the rewrite rules? I have def had this happen before and can send you a solution when I'm in the office tomorrow.

  • J 445 posts 862 karma points
    May 28, 2020 @ 16:08
    J
    0

    hi

    Heres an example of what i have repeated for the multiple sites

    <add name="RuleOne" virtualUrl="^~/en-GB/stations/(.*)/(.*)" destinationUrl="/en-GB/stations/station?id=$1" rewriteUrlParameter="ExcludeFromClientQueryString" ignoreCase="true" />
    

    As i say its repeated for each site :-)

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft