Copied to clipboard

Flag this post as spam?

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


  • Vijay 26 posts 127 karma points
    Sep 20, 2018 @ 08:23
    Vijay
    0

    How to restrict umbraco template direct visible in browser

    Hi there,

    I have created umbraco template named as sampletemplate. but I did not create a contents for that (I did not publish) template. 
    

    When I browse with that template( Example - https://www.example.com/sampletemplate) it's showing the content of the template. I don't want to display when I directly browse with template name. How can I do that?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Sep 20, 2018 @ 08:47
    Dave Woestenborghs
    101

    Hi,

    This the so called altTemplate fuctionality.

    To disable this entirely you do that in config

    https://our.umbraco.com/documentation/Reference/Config/umbracoSettings/#webrouting

    Here is some more info on alt templates in Umbraco : https://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/templating/alt-template/

    https://codeshare.co.uk/blog/umbraco-alternate-template-feature-bug/

    The last blog has another way to solve this.

    Dave

  • 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