Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

This is what chrome's console says:

Resource interpreted as Stylesheet but transferred with MIME type text/html: "someserver/wp-content/themes/pgcss/normalize.css/?ver=3.5.1". someserver:18

Resource interpreted as Image but transferred with MIME type text/html: "someserver/wp-content/themes/pgimg/lens.png/". someserver:77

Obviously something in injecting a slash at the end of my file.
I am not very familiar with nginx , what can I do?

share|improve this question
1  
Can you supply the code that enqueues the stylesheet and that outputs the image? –  Johannes Pille Apr 18 '13 at 17:28
    
What is your Nginx configuration for rewrites? Are you using try_files? Please paste your site config in the original question so we can see the full picture. –  Christiaan May 31 '13 at 14:18
add comment

1 Answer

Check the mime.types file in Nginx's config directory (if you're on Linux this is typically /etc/nginx/). If there's no MIME type file, check to see whether MIME types are declared inside nginx.conf. If not, you may need to create a mime.types file and include it in nginx.conf.

Here's the information on the Nginx wiki about MIME types: http://wiki.nginx.org/HttpCoreModule#types

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.