It depends on how you have your site set up. You may need to add your “foldername” after RewriteBase /
and in the last RewriteRule.
Like so (where “foldername” is the actual name of the folder):
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /foldername/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /foldername/index.php [L]
</IfModule>
# END WordPress
Some say you should even need to use “RewriteBase /” at all. But it really depends on how you have your site set up.
Also, is the warning saying that your permalinks aren’t writable or that your .htaccess isn’t writable?
Thanks for the response. Good catch, it is the .htacess that isn’t writable. Here is the exact error: If your .htaccess file were writable, we could do this automatically
Can you change the permissions of the .htaccess file?
http://codex.wordpress.org/Changing_File_Permissions
If not can you just create one, copy the contents above and just FTP it to your location?
Hello, Thanks for the continued help. Yes I can through cPanel.
Permissions are set to 644. But, this is what they are also set to on another WP site of mine where the .htaccess file is in root and the WP site was created in root also. This second site does not have the error, “If your .htaccess file was writable . . .”
Permissions are set to 644. But, this is what they are also set to on another WP site of mine where the .htaccess file is in root and the WP site was created in root also. This second site does not have the error, “If your .htaccess file was writable . . .”
Since I’m not exactly aware of the setup you’re using, I would just create an .htaccess file with those rules, delete the one that is currently there and FTP the new one in it’s place. (You may want to make a backup of it first.)
The link you posted is another person’s interpretation of how to do this – “Giving WordPress Its Own Directory”
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
One very important step that is missing from that post is this
“If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can’t write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)”.
So just refer to the WP link above and go through the steps and you should be fine.