More in this section

Forums / General Discussions / Site Structure URL pointing.

Site Structure URL pointing.

19 posts, 0 answered
  1. Stephen
    Stephen avatar
    5 posts
    Registered:
    05 Aug 2010
    19 Nov 2010
    Link to this post

    I am contemplating migrating my existing custom site to Sitefinity 4 and have the following question regarding site structure.

    One of my existing pages (sections) has a fair whack of incoming links and many hundreds of pages within so I do not want to redirect it to a new url, 

    The existing URL would be for argument sake.

    ~/blog/

    In the site in sitefinity, I would want the Blog page (section) to appear as a sub page of anotherpage within all site navigation (sitemap) but wish it to retain its existing URL.

    So in the sitemap I wish to structure it as   resources > blog 

    however url wise i wish it to retain the existing url of  ~/blog/, however when i try to add it as a sub page of the resources page it always tries to change the url to ~/resources/blog/  which i cannot allow.

    Any advice on how to accomplish this?





  2. Stephen
    Stephen avatar
    5 posts
    Registered:
    05 Aug 2010
    22 Nov 2010
    Link to this post
    I'm starting to think that this isn't possible and that I am going to have to write a lot of  funky REG-EX redirects to do some mapping of old to URL's to new ones if there is no other way of achieving this.

    Can anyone save me from REGEX Hell ?
  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    22 Nov 2010
    Link to this post
    Hi Stephen,

    Thank you for using our services.

    We had a url rewrite module in Sitefinity 3.x which would handle such requests. However we have decided not to introduce on in Sitefinity 4.0 as the one built in IIS is much more flexible and usable. You can check it out here: http://www.iis.net/download/urlrewrite.
    Greetings,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    22 Nov 2010
    Link to this post
    Dear Radoslav

    Some of us are on shared hostings and have not to much access to IIS.

    Markus
  5. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    24 Nov 2010
    Link to this post
    Hello Markus Berchtold,

    Thank you for joining the conversation.

    Can you confirm that on shared hosting the hoster does not allow you to use the UrlRewrite module of IIS? Generally UrlRewrite module can be configured from web.config, also rewrite rules are configured from web.config. So basically if your hosting service provider has the module installed you should not need access to IIS to configure it.

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. greg
    greg avatar
    3 posts
    Registered:
    01 Oct 2010
    01 Dec 2010
    Link to this post
    Is the IIS URL Rewrite Module only in IIS 7?
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    02 Dec 2010
    Link to this post
    Hello greg,

    Microsoft URL Rewrite Module requires IIS 7.You can take a look at System Requirements section for URL Rewrite Module

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. greg
    greg avatar
    3 posts
    Registered:
    01 Oct 2010
    14 Dec 2010
    Link to this post
    We won't be using IIS 7 on our web server.

    Is it possible to use the ASP.NET4.0 URL Rerouting by putting code in the global.asax file like this?

    		protected void Application_Start(object sender, EventArgs e)
    {

    RegisterRoutes(RouteTable.Routes);
    }

    void RegisterRoutes(RouteCollection routes)
    {
    routes.MapPageRoute("PromoRoute",
    "test""~/promo");
    }
  9. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    15 Dec 2010
    Link to this post
    Hi greg,

    Yes you can use custom route handlers that registered in Global.asax in Application Start event handler. As a matter of fact that is what we use in Sitefinity to serve the dynamic pages - we rely heavily on the ASP.NET 4.0 Route handlers. We are also going to release a url rewrite module in Sitefinity which is going to use the route handling to handle alternative urls.

    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. greg
    greg avatar
    3 posts
    Registered:
    01 Oct 2010
    15 Dec 2010
    Link to this post
    Thanks. Is this working in the RC?
  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    16 Dec 2010
    Link to this post
    Hello greg,

    In the RC there is no UrlRewrite module. We are going to work on UrlRewrite module Q1/Q1 2011

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. JH
    JH avatar
    33 posts
    Registered:
    24 Nov 2010
    26 Jan 2011
    Link to this post
    Hi,

    please provide status on the URL rewrite and would be great to have a simple sample when available.

    Thanks,
    JH
  13. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    31 Jan 2011
    Link to this post
    Hi JH,

    With the Q1 2011, we are going to provide new page types, and API for working with rewriting of URLs. Here is the list of pages types coming: 

    1. "Standard": Standard page with page data.
    2. "Group": Group page without page data.
    3. "External": External aspx page from the file system. It's outside of Sitefinity but it is inside of the web site. The page node has a page data object with ExternalPage property set.
    4. "InnerRedirect": Redirect inside of Sitefinity (redirecting page). The page node has no page data but keeps the id and the provider of another page node (linked page). It uses the lifecycle and multilingual versions of the linked page. A request to the URL of this page performs permanent redirect to the linked page. In the navigation control the URL of the linked page is rendered instead of the URL of the redirecting page.
    5. "OuterRedirect": Redirect outside of Sitefinity. The page node has no page data and permanently redirects to a page from the web. The URL of the linked page is stored in the RedirectUrl property of the PageNode. Supports multilingual, i.e. different URLs for the different languages.
    6. "Rewriting": Rewrite inside of Sitefinity. Same as InnerRedirect but loads the page data of the linked page, i.e. the page data is reachable by two URLs. Accessible only through API.

    Greetings,
    Georgi
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  14. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    31 Jan 2011
    Link to this post
    Dear Georgi

    Once again great news.

    You might want to think about the naming having non technical end users in mind.

    - Normal Page (displays own content)
    - Page Group (redirects to its first subpage)
    - Internal Sitefinity Link (links to a Normal Sitefinity Page)
    - Internal Link (links to a page outside Sitefinity but withing the own domain: .aspx, .html )
    - Externel Link (links to any page of the web: http://www...   )

    Or anyhting like it. I guess your UI team will work something out - Just keep endusers in mind :-)

    Markus
  15. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Feb 2011
    Link to this post
    Hello Markus,

    Sure, this is how we name them on a technical level. Our UX will come up with friendly names. Just like Controls vs. Widgets :) 

    Greetings,
    Georgi
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  16. John Tolar
    John Tolar avatar
    87 posts
    Registered:
    07 May 2003
    23 Mar 2011
    Link to this post
    We are currently writing a client portal by bypassing sitefinity and pointing to a page in a subdirectory. This currently works,  but to allow the site admin to build a custom secure menu (links storedin the database and builds SAML orTemplated URL) we have allowed them to create a menu structure in the backend pages menu. In the pages is a custom widget that stores the url info in the database. We are attempting to "Shadow" this menu by using the API, creating sitemap objects for the Block Navigation menu. The menu control pulls the data from the api and redirects them to "~/portalmenushadow/{linkid}". A HTTPHandler looks for the "portalmenushadow" directory in the url and redirects the navigation to the url that was built from the database id. 

    Yes it is over complicated and don't even get me started on the CustomAllowRoles and CustomDenyRoles involved. but it is a requirement and the only way we say to achieve it. How will the new Routing engine help us simplify this? Also when is Q1 set to be released and are you sure that this will be in the release. Telerik has been notorious lately for saying a feature will be in a release and it doesn't make it.

    Thanks,

    JT 
  17. Bob
    Bob avatar
    330 posts
    Registered:
    30 Dec 2016
    28 Mar 2011
    Link to this post
    Hello John Tolar,

     The routing engine is yet another approach for handling web requests. It provides a more coherent and flexible way to handle requests then URL rerating engines, but in its essence does the same thing. I’m not sure I understand correctly your scenario, but it seems the routing engine is the right way to go.

    Below is an example how you can modify routes in Sitefinity:
    (Global.asax)

    void Application_Start(object sender, EventArgs e) 
        {
            Telerik.Sitefinity.Abstractions.Bootstrapper.Initialized += new EventHandler<Telerik.Sitefinity.Data.ExecutedEventArgs>(Bootstrapper_Initialized);
        }
      
        void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs args)
        {
            if (args.CommandName == "RegisterRoutes")
            {
                var routes = (System.Web.Routing.RouteCollection)args.Data;
                var route = routes["LibraryItems"];
                var idx = routes.IndexOf(route);
                routes.RemoveAt(idx);
                routes.Insert(idx,  new CustomLibraryRoute());
            }
        }


    Q1 release is scheduled for April 13th. Routing is available from the first release of 4.0 and there i
    s nothing new in the upcoming Q1 release in that regard. The features that Georgi is talking about are already completed and definitely will be available in Q1.

    To clarify a bit on the features, they represent user interface for setting simple URL rewrites and redirects. These features allow you to do mappings of old URLs to new ones or have additional URLs for the same content. If you want to apply some rules or extend with additional logic you have to do it either by adding custom routes or configure IIS rewriting engine.

    All the best,
    Bob
    the Telerik team
  18. Ray
    Ray avatar
    15 posts
    Registered:
    09 Jul 2008
    16 Sep 2011
    Link to this post
    Does anyone know if the features talked about that have to do with putting the redirection and rewrite options in the UI were ever implemented. I know there is a redirect option but it doesn't allow for anything special that I know of. 
  19. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    19 Sep 2011
    Link to this post
    Hi Ray,

    At the moment the advanced URL rewriting feature is not implemented in Sitefinity 4.x. You can use the Additional URLs feature for pages and content items. This allows you to define legacy URLs for which can either perform 301 redirect or keep your resource accessible from the old URL (not good in terms of SEO).

    The other option is to use url rewrite modules such as UrlRewriter.NET. This allows you to use regular expressions to handle the URL before the request reaches Sitefinity.

    Regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
19 posts, 0 answered