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.

When a plugin needs to include a file from it's own folder it can't be read. It returns the 404 theme page.

For example. If a plugin installs some CSS to the header of a theme like so:

<link rel="stylesheet" type="text/css" href="http://mysite.com/wp-content/plugins/awesome-plugin/style.css">

This style actually won't work, if you travel to that URL in the browser I end up getting a 404 response rather than the CSS file. This causes alot of plugins to partially fail as it can't include the proper files.

Do you guys have any idea why this is happening? Here is my .htaccess file:

<files wp-config.php>
order allow,deny
deny from all
</files>

#block directory surfing
Options -Indexes

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress

Have I done something wrong there? The plugin folder (like the theme folder which is acting fine) has the correct permissions of 755.

Any help would be much appreciated.

share|improve this question
1  
This isn't strictly speaking a WordPress question, as the issue probably lies in your htaccess, which you have modified considerably beyond the WP norm. If you use a standard htaccess, does the problem resolve itself? –  vancoder Apr 23 '13 at 23:27
    
Nope. It doesn't. :( –  Ian Apr 23 '13 at 23:29
    
See if this helps: wordpress.stackexchange.com/questions/96408/… –  s_ha_dum Apr 23 '13 at 23:29
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.