url rewriting - IIS URL Rewrite Issue, excluding CSS,JS -
i rewriting subdomain remote url. user requests subdomain (e.g., xyz.domainone.com, rewritten domaintwo.com/webdite/xyz/)
i can see working fine, css , js files not working have relative paths , searched in subdomain. tried rules no success. rule below:
<rewrite> <rules> <rule name="ignore" enabled="true" stopprocessing="true"> <match url="^(.*/)(images|css|js).*"/> <conditions logicalgrouping="matchall" trackallcaptures="false"/> <action type="none"/> </rule> <rule name="domain redirect" stopprocessing="true"> <match url="^(.*)$" /> <conditions logicalgrouping="matchall"> <add input="{http_host}" pattern="^(.+)\.domainone\.com$" /> </conditions> <action type="rewrite" url="http://domain2.com/website/{c:1}/" appendquerystring="true" logrewrittenurl="true" /> </rule> </rules> </rewrite>
Comments
Post a Comment