Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

Newbie need help with CSS/Query Image URL using IIS ReWrite Module

$
0
0

Can anyone provide an example I have a application setup underneath the main default website in IIS, all my css image links stop working when ran from localhost. the name of my application is 123buy, and need to point to a sub folder in my applications directory called "images" how do i get this to work here what i have so far tried everything nothing works. I recieve same message when using CSS background url('images.imagename.png'), or jQuery same problem.

Main URL: http://localhost/123buy/

When i use the inspect element in google chrome i get these errors: fail to load resource: the server responded with a status of 404 (Not found). http://localhost/images/front_m_bg.png

<rewrite><outboundRules><rule name="Rewrite for localhost /images/imagename.png URLs in CSS response" preCondition="IsCSS"><match filterByTags="None" pattern="(localhost/images/)(([^/]*)\.[^.]*$)" /><action type="Rewrite" value="localhost/123buy/images/{R:2}" /></rule><preConditions><preCondition name="IsCSS"><add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/css" /></preCondition><preCondition name="IsHTML"><add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /></preCondition><preCondition name="IsASP"><add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/asp" /></preCondition><preCondition name="IsASPX"><add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/aspx" /></preCondition></preConditions></outboundRules></rewrite>

Viewing all articles
Browse latest Browse all 7363

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>