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

Forums / General Discussions / URL Rewriting =(

URL Rewriting =(

2 posts, 0 answered
  1. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    17 May 2011
    Link to this post
    Greetings,

    Is there a processing="stop" kind of feature with the sitefinity url rewriter?  A colleague has placed a blanket rule to rewrite everything .php to .aspx.

          <rule>
            <url>\.php</url>
            <rewrite>.aspx</rewrite>
          </rule>

    However when I try to make calls to my proxy for ajax requests:
    $.ajax({
            ...
            data: {
                   P: 'http://someothersite.net/infopage.php?param=value
            },
            url: 'http:/mysite.net/proxy.ashx'
            ...
    });

    The actual request gets rewritten to this:
    http://mysite.net/proxy.ashx?P=http://someothersite.net/infopage.aspx?param=value
    (urlencoding not include for this post)

    This makes me sadface.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 May 2011
    Link to this post
    Hi Isaac,

    The rule will apply for all matches. If it is possible you can add another rule after the first one and try to get the url back to .php, but you should know the exact url

    Regards,
    Ivan Dimitrov
    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
2 posts, 0 answered