roots / wp-h5bp-htaccess

WordPress plugin that adds HTML5 Boilerplate's .htaccess
https://roots.io/plugins/html5-boilerplate-htaccess/
MIT License
153 stars 37 forks source link

htaccess in subfolders being blocked #17

Open Mase007 opened 7 years ago

Mase007 commented 7 years ago

Hi,

I have a wordpress blog located in a subfolder of my site (mysite.com/blog) that doesn't work because the wordpress htaccess file can't be changed from:

# 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

to this

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

# END WordPress

Every time I change the permissions of the htaccess file in the blog subfolder from 444 to 604, it immediately gets changed back again. Sometimes it stays at 604 long enough for me to make the changes through Wordpress, however as soon as the permission reverts back to 444 the original htaccess file is put back in it's place!

It's driving me mad!

Can anyone help?

Cheers, Paul.