url-rewrite-module

.htaccess Question mark allowing

倖福魔咒の 提交于 2019-12-06 13:56:01
Hello today i tried to rewrite few things, i tried to rewrite this: www.example.com/index.php?title=how+do+man+live? To: www.example.com/posts/how+do+man+live?/ Now the problem is that the question mark appears only at url and when i post the $_GET variable(title..) its post everything but not the question mark. i tried put in rewrite mdoe this: RewriteRule post/([0-9א-בa-zA-Z+.`?]+)/?$ index.php?title=$1 [NC] course that the Rewrite engine is on. thank you guys, have wonderful day! You need to capture this value from THE_REQUEST variable to be able to capture ? also. Use this rule in root

IIS 7.5 URL Rewrite rule to handle request based on user agent

时光总嘲笑我的痴心妄想 提交于 2019-12-06 04:36:21
问题 I have written a rule to redirect request based on user agent. The rule is set to redirect default requests (not mobile) to Domain1 and requests from mobile to mobile domain Domain2 . Currently even after applying mobile redirect all request from mobile are taken to Domain1 Find the redirect rule below. Can anyone tell me what I'm missing? <rewrite> <rules> <rule name="Mobile UA redirect" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_USER_AGENT}"

ASP.NET - rewriting all https requests to http

有些话、适合烂在心里 提交于 2019-12-06 04:22:44
My issue is precisely the one presented here , and I've decided to try rewrite all https requests to http. I've searched long and hard but there doesn't seem to be a definitive way to achieve this - see these questions (no solutions): Redirect https to http using rewrite rule in webconfig file ; https://stackoverflow.com/questions/15214717/iis-rewrite-https-to-http-whilst-keeping-existing-https-rules I've added the rewrite module to IIS, and tried the following in web.config: <rewrite> <rules> <clear /> <rule name="force http" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input

Url Rewrite Provider on Azure Web App

无人久伴 提交于 2019-12-06 00:54:31
We use the DbProvider from the URL Rewrite Extensibility Samples for allow our rewrite rules to use db values. I'm trying to move this website to an Azure Web App. After deploying to a Windows Azure Web App, I'm getting this error: HTTP Error 500.50 - URL Rewrite Module Error. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Iis.Rewrite.Providers, Version=7.1.761.0, Culture=neutral, PublicKeyToken=0545b0627da60a5f' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Web.Iis.Rewrite.Providers, Version=7.1.761.0, Culture

Difference between IIS Redirect and Rewrite (in relation to redirecting)

£可爱£侵袭症+ 提交于 2019-12-05 22:30:05
The question may sound odd, but given an article , it is definitely possible to use the rewrite module to perform redirects just as with the redirect module. Both are able to issue a permanent redirect (301). There is a question asking for the difference, but it talks about the rewrite module being used to purely rewrite not redirect . Another post makes this clear, but doesn't seem to get an adequate answer. Hence, my question: What's the difference between these modules? Which is preferred over the other when it comes to redirects? NOTE: THIS ANSWER DOES NOT answer difference between IIS

Rewrite rule not filtering referral spam correctly (anymore)

浪子不回头ぞ 提交于 2019-12-05 20:21:37
I've added below rewrite rule to my web.config. It has worked perfectly, blocking all mentioned referral spam sites. However, today suddenly I noticed that social-buttons.com popped up in my Google Analytics. How is this possible with the rule I have defined below? <rule name="abort referer spam requests" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_REFERER}" pattern="(semalt\.com)|(buttons\-for\-website\.com)|(simple\-share\-buttons\.com)|(darodar\.com)|(social\-buttons\.com)" /> </conditions> <action type="AbortRequest" /> </rule> I had the same problem. social

Redirect additional domains to main .com domain using IIS7 URL Rewrite Module

柔情痞子 提交于 2019-12-04 14:32:40
How should I configure the URL Rewrite Rule in IIS7 to redirect my aditional domains ( domain.net, domain.org, domain.info) to the principal .com domain? In IIS7, you can use the new command “appcmd.exe” to enable redirection as following: %windir%\system32\inetsrv\appcmd set config "Default Web Site/" -section:system.webServer/httpRedirect -enabled:true -destination:"http://domain.com" This tells IIS to redirect all request sending to the virtual application “/” to “ http://domain.com ”. The actual result is that appcmd.exe adds the following section to the web.config file for “/”: web.config

IIS 7.5 URL Rewrite rule to handle request based on user agent

此生再无相见时 提交于 2019-12-04 10:52:23
I have written a rule to redirect request based on user agent. The rule is set to redirect default requests (not mobile) to Domain1 and requests from mobile to mobile domain Domain2 . Currently even after applying mobile redirect all request from mobile are taken to Domain1 Find the redirect rule below. Can anyone tell me what I'm missing? <rewrite> <rules> <rule name="Mobile UA redirect" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_USER_AGENT}" pattern="^.*BlackBerry.*$ " /> <add input="{HTTP_USER_AGENT}" pattern=".*Mobile.*Safari" /> </conditions>

IIS rewrite rule to redirect specific domain url to different url on same domain

时光怂恿深爱的人放手 提交于 2019-12-04 03:58:25
I simply want an IIS 7.5 rewrite rule to redirect http://www.domain.com/url1 to http://www.domain.com/url2 (same domain). This can be achieved by: <rule name="Redirect url" enabled="true" stopProcessing="true"> <match url="^url1" /> <action type="Redirect" url="http://www.domain.com/url2" appendQueryString="false" redirectType="Permanent" /> </rule> However, this website listens to several domains, thus above becomes a global rule for all domains. How do I make this specific to domain.com? Have tried changing match url and adding conditions but cannot get it to work. Thanks. James Barry I got

IIS Rewrite Module and sub applications

霸气de小男生 提交于 2019-12-03 13:46:17
问题 Here's what I have deployed: testRedirect is an empty website. All sub-applications are sub-folders that have been converted in application. All of them are ASP .Net MVC sites. Here's what I want to setup: Http://localhost/ must show the content of SiteName1 without displaying Http://localhost/SiteName1/ in the adress bar (it must stay Http://localhost/ ) Http://localhost/SiteName1/ must show the content of SiteName1 without displaying Http://localhost/SiteName1/ in the adress bar (it must