Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

.htaccess is blocking access to files in the root WordPress

  • SOLVED

I have a .htaccess file working well on WP, but as a side effect, it's stopping me from accessing images/scripts/favicons etc inside the web root.

For example, this: http://mysite.com/apple-touch-icon.png throws a 403 Forbidden page.

Works fine for any files within subdirectories, though, so I just need the .htaccess tweaking. Here's the contents at the moment:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


Thanks!

Answers (1)

2011-05-26

Rashad Aliyev answers:

Hi, that's about your hosting permissions. Make your folder permission 755, maker your .php file 644. If it's not worked then make both of them 777 and test it. If it's works then contact with your host company ask about WordPress default configuration for your hosting.


Jon comments:

Aha, should have spotted that one. Looks great, thanks!