404 Error After Changing Common Settings For Permalink- .htaccess Updating Issue

Discussion in 'Programming' started by enterprisemind, Apr 12, 2012.

  1. #1
    Hi,

    I am having a serious problem with my Wordpress v. 3.3.1 permalinks failing after I changed the common settings from the default to /%post name%. After saving it says 'You should update .htaccess now.' In addition, at the bottom it states 'If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file.' It then offers this code as a solution to updating:

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

    After creating a notepad file naming it .htaccess(after renaming from 1.htaccess via the FTP program) and uploading it directly to my addon domain directory(site is an addon). Then saving it again, I still get the same error message in the permalink settings section, 404 error message on the page through the link and this message in my error log:

    [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.

    Does anyone know how to fix this problem permanently? Any suggestions welcome.

    Thanks
     
    enterprisemind, Apr 12, 2012 IP
  2. enterprisemind

    enterprisemind Member

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #2
    Good afternoon all,

    I am relieved to tell all that I have figured out what my issue was. I had a separate directory folder for my addon Wordpress site, yet I have the Wordpress URL listed as an extension of my parent site. So, in the 'Setting ---> General' section I had it listed as follows:

    Wordpress URL: www.parentdomain.com/addondomainname
    Site URL: www.addondomainname.info

    When I should have had it as follows:

    Wordpress URL: www.addondomainname.info
    Site URL: www.addondomainname.info

    The incorrect Wordpress URL was causing Wordpress to automatically try to save all the new information into the Parent site folder which was confusing it because there was already a file there configured for a different site. Therefore, forcing it to ask me to create and update my own .htaccess file.

    Thanks to everyone who put any time into brainstorming for the solution to this problem.
     
    enterprisemind, Apr 15, 2012 IP