Forum Moderators: phranque
Instead of looking at www.widgets.com/images/ I want the server to look at www.widgets.com/www.widgets.com/images/ (where the second "www.widgets.com" is the name of a directory).
The problem is that I'm trying to do this without specifying the actual domain. I've written the following - but can't get it to work. Can anyone tell me whats wrong with this part of my code?
RewriteCond %{REQUEST_URI} ^.*.(jpg¦jpeg¦gif¦js¦css¦class¦jar¦ipix)$ [NC]
RewriteCond %{REQUEST_URI}!%/{HTTP_HOST}/*
RewriteRule ^(.*)$ /%{HTTP_HOST}/$1