1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Remapping the url of normal pages used a 'parents'

Remapping the url of normal pages used a 'parents'

7 posts, 0 answered
  1. Kevin
    Kevin avatar
    42 posts
    Registered:
    15 Mar 2005
    15 Jul 2009
    Link to this post
    When adding pages in Sitefinity, I prefer to use a regular page as the parent, and then nest other pages beneath it, since it works well with the breadcrumb and the URLS.  For example, I would have the following ... all of which are normal pages:

    Tutorials
    -- LPC2148 QuickStart Guide
    -- -- Lesson 2: Basic Input and Output (GPIO)

    The url of the last page would be:
    http://MyHost/Tutorials/LPC2148/GPIO.aspx

    which is perfect ... except that it's perfectly normal for any user to delete GPIO.aspx to have the url below:

    http://MyHost/Tutorials/LPC2148/ or http://MyHost/Tutorials/LPC2148/

    and expect to go to the parent page (I do this all the time myself).  Unfortunately, because I'm using normal pages only LPC2148.aspx will work. :-(  I've played with the url remapping in the web.config, but had issues that when I tried to map something to a parent folder, all the children were messed up or redirected to the parent page, etc.

    Is there any chance someone would be able to suggest a way (even if it means rewriting something internally on my part) to gracefully allow people to 'guess' urls on my website?  For example, if someone enters MyHost/Folder or MyHost/Folder/ to try adding .aspx to it to avoid a page not found error?

    Kevin.
  2. Sean
    Sean avatar
    271 posts
    Registered:
    31 May 2006
    15 Jul 2009
    Link to this post
    Hi Kevin,

    I think what you are looking for may be answered in this post about Extensionless Urls.

    Cheers
    Sean
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    15 Jul 2009
    Link to this post
    Hi,

    You can also take a look at our UserManual - Extensionless URLs section.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  4. Kevin
    Kevin avatar
    42 posts
    Registered:
    15 Mar 2005
    15 Jul 2009
    Link to this post
    Thanks to both of you for the response.  I didn't think this was the same issue because I was using normal pages as the parent, but it works when I enable extensionless URLs and adjust the url to:

    http://myhost/tutorials/lpc2148

    BUT

    When I put:

    http://myhost/tutorials/lpc2148/

    I seem to lose all CSS, and I just get the raw page contents?  Is the problem most likely in sf404, just so that I can see if there is something obvious I can fix when a trailing forward slash is present?

  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Jul 2009
    Link to this post
    Hi Kevin,

    We are aware of this problem, and have a temporary solution for it - a custom build attached to this thread. You can upgrade to it(from Sitefinity 3.6SP2) by simply replacing the bin directory assemblies.

    We will soon release an official update for Sitefinity, which will use this build as a base.

    I hope this helps. Let us know if you have any questions.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Kevin
    Kevin avatar
    42 posts
    Registered:
    15 Mar 2005
    20 Jul 2009
    Link to this post
    Georgi:

    Thanks for the update.  I was thinking that I could just use a regular expression to change any trailing forward slashes to '.aspx"', but If it's only a week or two off, I'll likely just wait for the full update before going live with my site.  After a few months working on this, what's a few more weeks if it can get a few more bugs out. :-)

    Kevin.
  7. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Jul 2009
    Link to this post
    Hi Kevin,

    We are targeting the end of this month for the release. We will try to do it sooner though :)

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
7 posts, 0 answered