Comments on: IIS URL Rewrite 2.0 – Release to Web https://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/ Azure App Service Features and Best Practices Fri, 01 Nov 2019 17:08:06 +0000 hourly 1 https://wordpress.org/?v=6.2.16 By: Ruslan https://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/#comment-7109 Fri, 01 Nov 2019 17:08:06 +0000 http://ruslany.net/?p=695#comment-7109 In reply to Naveed.

Naveed – the rules can be loaded from any web.config if they exist there. The will be applied on the URL’s relative to that subfolder.

]]>
By: Naveed https://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/#comment-7034 Thu, 31 Oct 2019 00:39:56 +0000 http://ruslany.net/?p=695#comment-7034 In reply to Ruslan.

Ruslan,

I had a thought that rules are only loaded from root web.config, in which scenario they can load from subfolder/web.config ?

Thanks
Naveed

]]>
By: Eric https://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/#comment-4481 Mon, 12 Aug 2019 20:41:12 +0000 http://ruslany.net/?p=695#comment-4481 How can you connect to a remote SQL server for this since likely iis appPool\defaultappPool won’t be available?

]]>
By: Raimonds https://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/#comment-734 Thu, 18 May 2017 11:51:51 +0000 http://ruslany.net/?p=695#comment-734 How to disallow http proxy if someone puts url “site2.com” at the end of url “site1.com”?

example: https://site1.com/page.aspx?https://site2.com

Wisiting this url opens site2, but display’s site1 IP not my actual IP.

IIS 6.1

]]>
By: Baptiste https://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/#comment-733 Fri, 06 May 2016 00:00:20 +0000 http://ruslany.net/?p=695#comment-733 Hi Ruslan,

Is it possible to add custom rewrite providers on an azure webapp ?
Thanks

]]>
By: John https://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/#comment-732 Thu, 21 Jan 2016 07:36:47 +0000 http://ruslany.net/?p=695#comment-732 Hi Ruslan,

The rewrite rules get cache for 30 sec and the DB provider not call to the database. How to increase rewrite cache. how the DBProvider CahceIntervalMinutes work?

]]>
By: Jabu https://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/#comment-731 Thu, 03 Dec 2015 15:15:50 +0000 http://ruslany.net/?p=695#comment-731 Hi Ruslany

I’m wondering if you could help me out, I’m a bit new in IIS
I’m trying to use URL Rewrite and so far not getting anywhere

I want to shorten “http://mipayslip.mobi/xxx/xxx” to “http://mipayslip.mobi/”
Below is my web.config

Thank you in advance

]]>
By: Reinhard https://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/#comment-730 Thu, 11 Oct 2012 13:55:46 +0000 http://ruslany.net/?p=695#comment-730 Dear Ruslan,

after hours of searching I’d like to ask you directly for your help: I configured a URL rewrite fom IIS7 to a host running JBoss and tried to add the login user and his domain in the header area but unfortunately it does not work…

Thanks in advance!
Reinhard

]]>
By: Karim Momtaz https://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/#comment-729 Mon, 06 Aug 2012 09:52:32 +0000 http://ruslany.net/?p=695#comment-729 Dear Ruslan,

I’m using the IIS Url Rewrite with the rules posted on Waldek Blog
And these are the rules as written in the web.config:

My problem is: I have a login page, when I click on the login button, no validation fires and the page postback fails. And this error applies on any page that postback

Any tip how to fix this bug! I searched a lot but nothing to handle this bug on IIS Rewrite!

Thanks in advance!

]]>
By: eddy https://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/#comment-728 Tue, 18 Jan 2011 13:42:56 +0000 http://ruslany.net/?p=695#comment-728 Hello ruslan,

I am trying to convert my site with seourl using urlrewrite 2.0..
Everything works in local system, but in the server, It is showing up error in the webconfig file, The configuration section ‘outboundRules’ cannot be read missing section declaration. The part of the webconfig is posted.

<rewrite>
<rules>
<rule name="RedirectUserFriendlyURL1" stopProcessing="true">
<match url="^tutorial\.aspx$" />
<conditions>
<add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
<add input="{QUERY_STRING}" pattern="^id=([^=&amp;]+)&amp;title=([^=&amp;]+)$" />
</conditions>
<action type="Redirect" url="tutorial/{C:1}/{C:2}" appendQueryString="false" />
</rule>
<rule name="RewriteUserFriendlyURL1" stopProcessing="true">
<match url="^tutorial/([^/]+)/([^/]+)/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="tutorial.aspx?id={R:1}&amp;title={R:2}" />
</rule>
</rules>
<outboundRules>
<rule name="OutboundRewriteUserFriendlyURL1" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img" pattern="^(.*/)tutorial\.aspx\?id=([^=&amp;]+)&amp;(?:amp;)?title=([^=&amp;]+)$" />
<action type="Rewrite" value="{R:1}tutorial/{R:2}/{R:3}/" />
</rule>
</outboundRules>
</rewrite>

And one more, When i post back, the query strings are appended
eventhough i had disabled append querystring

]]>