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

URLs

11 posts, 0 answered
  1. Nick
    Nick avatar
    91 posts
    Registered:
    04 Aug 2008
    19 Aug 2008
    Link to this post
    hi guys!

    i have a problem involving the access of pages via direct entry of a URL into the browser.

    consider the following URL:
    www.website.com/section/sub-section

    where section and sub-section are both page groups. section may contain a number of page groups (sub-section is such an example) and also standard pages (each page group will contain at least one standard page - one of which is always index.html)

    as mentioned above sub-section has a page within it's group, index.html, which is the first in the group. thus, accessing the URL:
    www.website.com/section/sub-section.html
    directs the browsers to this index.html page. however, accessing the URL:
    www.website.com/section/sub-section
    causes a page not found error. this is unexpected and undesirable

    the same is true if the following URL is accessed:
    www.website.com/section.html
    this directs to the index.html page in it's group, but accessing the URL:
    www.website.com/section/
    also causes a page error.

    i have tried setting alternate URLs from within sitefinity, but to no avail - this is also unsuccessful.

    does anybody have any suggestions as to how to resolve this problem?

    thanks in advance,
    Nick.
  2. Nick
    Nick avatar
    91 posts
    Registered:
    04 Aug 2008
    19 Aug 2008
    Link to this post
    whilst awaiting a reply i have since delved further into this issue myself. i have discovered the section of the user manual covering extensionless URLs.

    However, initially i was confused as to what this mysterious page sf404.aspx was, and where it resided (and then deciding i'd just supply IIS with the path to this page - whether it exists or not!)

    so, after pointing IIS 404's at this non-existent file i seem to have garnered the desired effect of being able to use extensionless URLs for page groups.

    however all is not as well as it sounds. the URL produced after using an extensionless URL is very unwieldly and long. For example typing in the URL:
    http://localhost/section/subsection/
    results in the following URL:
    http://localhost/section/subsection/index.html?404;http://localhost:80/section/subsection

    As can be seen, this URL is hardly desirable. it would be preferrable if the URL did not get altered when the redirect is performed.

    Any suggestions?

    thanks again,
    Nick!
  3. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    19 Aug 2008
    Link to this post
    this is a known issue in the sf404 page. I've been waiting for a resolution myself. the workaround being given currently is to use the "wildcard mapping" from the user guide to route all requests through the sitefinity engine.

    I believe an update in september is supposed to address this but I'm not 100% sure if this is actually scheduled, I hope so!
  4. Nick
    Nick avatar
    91 posts
    Registered:
    04 Aug 2008
    20 Aug 2008
    Link to this post
    cheers!

    got wildcard mapping implemented and it's working like a charm!

    look forward to the sf404.aspx bug being fixed though so that we can reduce the overhead demanded by wildcard mapping.

    thanks again,
    Nick
  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Aug 2008
    Link to this post
    Hi,

    Nick,
    This is the case indeed.

    Josh,
    Thank you for participating in this discussion and providing the workaround. He have updated your Telerik account!
    We will do our best to fix this issue for the upcoming release!

    Greetings,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Nick
    Nick avatar
    91 posts
    Registered:
    04 Aug 2008
    26 Aug 2008
    Link to this post
    i was going to start a new thread dealing with the following question, but i thought since it is a URL based enquiry, it would be suited just as well here!

    basically, here are the questions i have:

    1) is there any way to ensure that all URLs are lowercase?? if a page's URL is based upon (for example)  the title of the news article which it is responsible for  displaying, is there a way to have sitefinity generate the URLs as all lowercase, even if the title upon which the URL is based has capital letters in it?

    for example, a news article with the title "I Am a News Article" could be displayed at www.website.com/news/i-am-a-news-article.html

    2) is there a way to eliminate query strings (or at least eliminate them as much as possible). for example chainging pagination query strings so instead of news.html?page=2, it would read news2.html  or news/page2? and also with relation to viewing news by category (after selecting a category from a news list), is there a way to eliminate the query string created by this action?

    hope that all is clear with my inquiries, if not please let me know and i will attempt to elaborate/articulate in an alternative manner.

    thanks in advance,
    Nick!
  7. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    26 Aug 2008
    Link to this post
    Hi Nick,

    1) Is there any way to ensure that all URLs are lowercase??
    We have posted a response to this question in the forum thread document context / url consistency

    2) is there a way to eliminate query strings (or at least eliminate them as much as possible)
    There are several things you could do. Especially for the News and Blogs module, you could set the property RenderPagerAsLink to False. This property a property of the NewsView and BlogPosts control and is located in Advanced tab, section Paging.
    You could remove the category id query string from the URL when you click on category, and replace it with category name. If you want for example to do it for the Blog Posts control (it is the same for NewsView control) -
    Edit the BlogPosts control, click on Advanced tab, QueryString Keys. Just change the property CategoryKeyType to Name and you will be done.

    You could actually use a smarter solution for your URLs. Sitefinity has very powerful feature named UrlRewriter. With its help, you could rewrite the URLs based on some rules. For an example and more information on how to use this feature, please refer to our User Manual -> The Application Web.config File, section UrlRewriting.

    I hope this helps.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. Nick
    Nick avatar
    91 posts
    Registered:
    04 Aug 2008
    26 Aug 2008
    Link to this post
    thank you for the speedy reply!

    sorry, i didn't realise my first question had already been asked and answered (especially under my name - one of my fellow developers must have posted it!)

    as for the second question, your answer has provided some help but not quite the answer i was looking for.

    by disabling RenderPageLink, the link now becomes a javascript postback, which is even less desirable than a query string. basically what i am looking to achieve is the facade of static URLs even though they may in fact be dynamic. so i want definite links to pages, and a query string/javascript postback does not allow for this facade.

    I am aware of the UrlRewriting feature, but from my understanding this is for the purpose of user based access, to provide aliases (so to speak) for pages. I wish to perform somethin familiar, but rather than change the way URLs are accessed by the outside world, i wish to change how Sitefinity generates URLs internally.

    so for example, currently, with pagination and RenderPageLink enabled (query strings are neater than the JS postbacks!) i woudl like Sitefinity to generate a link to the second page as such:
    www.website.com/news/page/2 (or somethin to similar effect)
    as opposed to how it is done by sitefinity:
    www.website.com/news?page=2

    i know i could get this working with a UrlRewrite so that the user could manually enter the address, but i want Sitefinity, to alter the way it generates links in the pagination (which could then use the UrlRewrite to redirect to www.website.com/news?page=2 for instance)

    hope this clarifies what i am looking for,
    thanks (again!),
    Nick
  9. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    29 Aug 2008
    Link to this post
    Hello Nick,

    I thought that you want to change the way URLs looks like in the browser, that is why I suggested using the UrlRewriter and changing the NewsView property RenderPageLink.

    Unfortunately there is no way for now to change the links generated by the NewsView control other than the already presented rules. You could develop your own control which is using the News APIs, and create custom pager. Combing this with Extensionless Urls should do the trick.

    I apologize for the misunderstanding.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  10. Herman
    Herman avatar
    6 posts
    Registered:
    22 Jun 2009
    03 Sep 2009
    Link to this post
    I cannot find the section Extensionless URLs in the 3.7 manual.pdf It linkes to the bottom of the document. Searching for Extensionless does not result in any other reference. Where can i find this info? 
  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Sep 2009
    Link to this post
    Hello Herman,

    I am sending you attached archive with an document which describes how to set Expressionless urls.  You can also take a look at InstallationGuide_3_7.pdf

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
11 posts, 0 answered