Strange issue with jQueryUI and .htaccess RewriteRule

Posted by dosboy on Stack Overflow See other posts from Stack Overflow or by dosboy
Published on 2011-01-08T22:27:18Z Indexed on 2011/01/08 22:53 UTC
Read the original article Hit count: 205

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about jquery-ui

Related posts about .htaccess