Comments on: 10 URL Rewriting Tips and Tricks https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/ Azure App Service Features and Best Practices Sat, 01 Jun 2019 03:21:26 +0000 hourly 1 https://wordpress.org/?v=6.2.16 By: Ruslan https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/#comment-434 Mon, 09 Nov 2009 04:09:36 +0000 http://ruslany.net/?p=307#comment-434 The comments on this post have been closed. Please use the URL Rewrite Forum to post your questions about the module and rewrite rules. I, along with many other people, monitor that forum and you will get a much quicker answer to your question.

URL Rewrite Forum on IIS.NET

]]>
By: Ruslan https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/#comment-433 Mon, 09 Nov 2009 04:05:25 +0000 http://ruslany.net/?p=307#comment-433 @Will: Please take a look at the post IIS 7 and URL Rewrite – make your web site seo. It has an example of the rule that you need.

@Brian, can you try making a request to this URL by using WFetch and then check what is the URL in the response “Location” header?

]]>
By: Brian https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/#comment-432 Sun, 08 Nov 2009 22:46:09 +0000 http://ruslany.net/?p=307#comment-432 I’m trying to add the / automatically using your rule above but I get a endless loop occurring when I type in http://localhost/MyWebsite/MyPage into the browser

Any help would be appreciated

]]>
By: Will https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/#comment-431 Wed, 04 Nov 2009 16:29:42 +0000 http://ruslany.net/?p=307#comment-431 Does anyone have experience with using the url rewriter to restate…. http://www.yourdomain.com/default.aspx to http://www.yourdomain.com/ ?

I used this but it seems to just loop back on itself when using asp link buttons or asp buttons?

Any idea why?

Great post by the way.

Will

]]>
By: r4 dsi https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/#comment-430 Sat, 03 Oct 2009 13:19:17 +0000 http://ruslany.net/?p=307#comment-430 Thanx for the valuable tips and tricks. I will keep them in mind while working on all my projects. keep posting.

]]>
By: robert https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/#comment-429 Tue, 29 Sep 2009 01:59:00 +0000 http://ruslany.net/?p=307#comment-429 Ruslany, thanks for getting back to me, that makes sense. My only other concern with this configuration is that each domain that uses ARR will allow users to upload images/videos/etc. These domains/websites are built in Silverlight and use ADO.NET Entity Framework and Web Services to accomplish file upload. Ideally, I want to upload/save their files to the Proxy server using ARR, and then retrieve these files from the Proxy server for display within their domain. Is this possible with the ARR configuration described? And do you have any other advice or documentation that you could point me to? Thanks again for your help.

Robert

]]>
By: Ruslan https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/#comment-428 Mon, 28 Sep 2009 07:46:55 +0000 http://ruslany.net/?p=307#comment-428 @robert: Yes, you can create modify the rule in #7 to affect only specific domains. For that you could add a condition to the rule that will force to rule to be executed only for a particular domain:

<conditions>
<add input="{HTTP_HOST}" pattern="mydomain\.com"/>
</conditions>

]]>
By: robert https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/#comment-427 Fri, 25 Sep 2009 09:16:19 +0000 http://ruslany.net/?p=307#comment-427 Ruslany,

Thank you for sharing this. I followed “Step 7. Reverse Proxy To Another Site/Server”, and installed/configured ARR on my server. But I have several domains for which I don’t want ARR to affect their current functionality. Can I use ARR + URL Rewrite on only specific domains, and not have it affect the existing functionality of other domains?

Thanks,
Robert

]]>
By: Latif OZTURK https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/#comment-426 Thu, 10 Sep 2009 15:04:57 +0000 http://ruslany.net/?p=307#comment-426 Thank you very much indeed. Very useful Tips and Tricks.

]]>
By: Ruslan https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/#comment-425 Wed, 09 Sep 2009 16:11:42 +0000 http://ruslany.net/?p=307#comment-425 Create a redirect rule that checks if the request came for anything but “default” or “app1” and then redirects to “default”:

<rule name="redirect"stopProcessing="true">
<match url="(.*)"/>
<conditions>
<add input="{URL}" pattern="^/(?:default|app1)" negate="true" />
</conditions>
<action type="Redirect" url="default/{R:1}" redirectType="Permanent" />
</rule>

Make sure that this rule is in the web.config file located at the root folder of your web site. Otherwise it won’t work.

]]>