Copied to clipboard

Flag this post as spam?

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


  • Martin 278 posts 661 karma points
    Sep 25, 2012 @ 13:15
    Martin
    0

    Hide "Back Office" URL Content Node

    Hi all,

    Is there a way to hide a content node url.

    I have setup a site with all my public facing pages under a Home node.

    On the same level of the Home node I have a "Back Office" node which I use for a widget repository, error pages and the like. These pages all have a url.

    Is there a way to completley hide the "Back Office" content nodes urls?

    Currently if I view the url of a widget, it will redirect to the 404 page, but I dont want the urls to be viewed or to be indexed in search engines.

    Any help would be grateful.

    Martin

     

  • Ian Robinson 76 posts 140 karma points
    Sep 25, 2012 @ 14:16
    Ian Robinson
    0

    You could try these two approaches perhaps....  

    1) create a robots.txt file in the root of your website, telling any search engine crawlers to not index your widget repository (http://www.javascriptkit.com/howto/robots.shtml), e.g.: 

    User-agent: *
    Disallow: /site-settings/widget-repository/
    Disallow: /site-settings/other-page-etc/
    

    2) redirect any requests to your widget-repository page using the Umbraco routing file found in /config/UrlRewriting.config, e.g.:

    <add name="widgetRedirect"
    redirect="Domain" 
            ignoreCase="true" rewriteUrlParameter="IncludeQueryStringForRewrite"
            virtualUrl="http://your-site/site-settings/widget-repository/" 
    redirectMode="Permanent"
            destinationUrl="http://your-site/" />
    Does that help?

     

     

  • Martin 278 posts 661 karma points
    Sep 25, 2012 @ 14:48
    Martin
    0

    Thanks Ian, 

    I has thought of using the robots file, but was a little unsure of how succesful it would be.

    Redirecting the url looks like a bettre way to go.

    Thanks again.

  • Funka! 398 posts 660 karma points
    Sep 26, 2012 @ 02:14
    Funka!
    0

    Take a look at U4-862 and up-vote it if you think this would be a useful addition/change to the core!

    Regardless, I think you'll find that (A) as long as you never create any of your own links to this "back-office" node of yourse, then search engines will never find it, and also (B) even if such a link did exist, the fact that it is returning a 404 (because it doesn't have a template) means that the search engine isn't going to index it...

    Best of luck!

  • Martin 278 posts 661 karma points
    Nov 19, 2012 @ 11:24
    Martin
    0

    Hi, 

    I was just having a re-think on this as I only used the robot.txt file method suggested.

    Using the redirect method, is it possible to redirect all URL's under http://www.mysite.com/repository/ without having to enter every URL.

    I have given the user the ability to create widgets, with the url after repository could be anything.

    Any help would be grateful

     

     

  • 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