Magento – Admin not saving changes

.htaccessadminconfigurationcore-config-datamagento-1.8

I've seen a lot of people with similar issues, but none of the many resolutions I've seen online have worked for my situation.

Magento 1.8 Community Edition. Admin changes are not being saved. Products are not saved, Configuration changes are not saved.

My htaccess is redirecting to get rid of the index.php

RewriteRule .* index.php [L]
RewriteCond %{REQUEST_URI} !^/index.php/admin/
RewriteRule ^index.php/(.*) $1 [R=301,QSA,L]

I use the same htaccess file on an older separate site with no issues.

I've noticed that in firebug, GET url requests are redirected 302, while the POST during the saving process is a 301, and calls the index.php/admin

Is this not an htaccess issue? Is there an issue in the core code redirecting the POST calls overriding htaccess?

Best Answer

I had this issue and in case anyone doesn't know the answer here it is, - the above code will also not allow checkouts or anything that requires index.php as the rule is not rewriting the index just removing it.

Follow the already posted instructions by Amit Bera to ensure you are allowing rewrites in the config then change your htaccess file to reflex this (changing base if needed)

RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

This will rewrite all index.php indexes out for you.