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

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -