Strange issue with jQueryUI and .htaccess RewriteRule
- by dosboy
I have the following rule in my .htaccess which redirects any requests for /labs/... to /projects/...:
RewriteRule ^labs/(.+)$ projects/$1 [L]
Where projects is a local folder on my web server. I'm using jQueryUI on a page in a subfolder of projects, say projects/project1/index.php.
When I hit http://mydomain.com/projects/project1/ everything is fine. However if I hit http://mydomain.com/labs/project1/ almost everything is fine, except that I get the following warning in my JS console:
Resource interpreted as image but transferred with MIME type text/html. ui-bg_highlight-soft_60_4ca20b_1x100.png
And my jQueryUI button loses its glossy look.
I don't even know where to begin to try to solve this. But if anyone has any suggestions I'd greatly appreciate it.