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

Forums / Developing with Sitefinity / urlRewriteFormat with http and domain

urlRewriteFormat with http and domain

4 posts, 0 answered
  1. Per Osbeck
    Per Osbeck avatar
    7 posts
    Registered:
    12 May 2010
    22 Jan 2011
    Link to this post
    Hi there,

    for the Libraries modules, is it in some way possible to rewrite the url as below:

    urlRewriteFormat="http://www.mydomain.com/{Provider}/{LibraryName}/[Name].sflb.ashx"

    the resulting code always seem to add a / in the beginning like

    src
    ="/http://www.mydomain.com/Libraries/MyImage.sflb.ashx"

    is there an easy way around this?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    24 Jan 2011
    Link to this post
    Hello Per Osbeck,

    The UrlRewriteFormat does not use the domain name in the format. It always starts with a path relative to your domain, so you do not need to put it in the domain name.

    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
  3. Per Osbeck
    Per Osbeck avatar
    7 posts
    Registered:
    12 May 2010
    24 Jan 2011
    Link to this post
    Thanks,

    but I need all Library requests to be through a "proxy" first so I need the full domain. F.ex.

    when browsing the website like "http://www.mysite.com" I need the following on my Library requests:
      src="http://proxy.mysite.com/Libraries/myImage.ashx">

    Is it possible to override some method that does the rewriting for the Library?
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    26 Jan 2011
    Link to this post
    Hello Per Osbeck,

    For this you will have to use the IIS UrlRewrite module. You will have to create outbound/inbound rules for requests with the .sflb.ashx extension. Also please take a look at this thread discussing the use of the IIS UrlRewrite module with Sitefinity.

    Best wishes,
    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
Register for webinar
4 posts, 0 answered