views:

18

answers:

0

I want to speed up my website using subdomains for image and javascript requests.

This is the entry of my htaccess file for images:

RewriteCond %{HTTP_HOST} !^www.mywebsite.com$ [NC]
RewriteRule ^(.*\.(gif|jpg|png))$ images.mywebsite.com/$1 [QSA,L] 

This works fine, only the images in my css file are still loaded from the www.mywebsite.com domain in stead of images.mywebsite.com.

How can I fix this?