0

I have a request that would look something like this http://cariers.example.com/style/all.css that would need to be rewritten to http://www.example.com/style/all.css. The request could be anything from a file like .css or .js to an actual page .aspx.

Thanks for your help

bflemi3
  • 6,698
  • 20
  • 88
  • 155

1 Answers1

0

Give this a try (for ISAPI_Rewrite 3):

RewriteBase /
RewriteCond %{HTTP_HOST} ^[^.]+\.example\.com$ [NC]
RewriteRule ^(.*\.(?:css|js|aspx))$ http://www.example.com/$1 [NC,L]
TonyCool
  • 1,004
  • 1
  • 6
  • 5