Opening .htaccess in the template editor of WP reveals a blank file
wp-admin/.htaccess contains
<IfModule mod_security.c>
SecFilterInheritance Off
</IfModule>
And nothing else
Misspelled or not the .htaccess should not reside in wp-admin/ but rather the root directory of your site, or the directory your WordPress blog was installed to, depending on how things are set up.
Note that if for whatever reason WordPress cannot write to your .htaccess, you can always copy and paste into it the rewrite rules which should appear at the bottom of the Permalink Options page.
ie. /index.php/%year%/%monthnum%/%day%/%postname%/ ?
Should I write
<IfModule mod_security.c>
SecFilterInheritance Off
</IfModule>
to the root .htaccess and delete the wp-admin/.htaccess
Currently the root .htaccess is blank
At the *bottom* of Permalink Options. If WordPress deems it cannot write to the .htaccess file, it would display a text box with something like the following in it:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
There is no text box at the bottom of the permalink options, but regardless of the changes I make to the permalink structure, .htaccess remains blank. Checked w/ host and mod_rewrite is installed and activated
pasted
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
into blank .htaccess and now we’re good to go
I was having the same issue and came to the same resolution with pasting:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
but now, my htaccess keeps getting reset to blank about once a day – any ideas??