WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I cant access wp-admin at all after changing wp-config folder permission for hardening my security. The content for the site load find, i cant access wp-admin at all, all i get is 404 message.

anyone know how to fix this, I need a fix FAST.

share|improve this question
have you tried reverting the changes you did to wp-config? – moraleida May 18 '12 at 14:16
I tried the undo method and Michael way but get "Internal Server Error" :( I did not delete any files or folders – Jermaine Hercules May 18 '12 at 14:39
my .htacess file looks like this # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_URI} !^/(wp-admin|wp-admin/.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress – Jermaine Hercules May 18 '12 at 14:42
up vote 0 down vote accepted

Delete .htaccess

type in domain.com/wp-login.php


Dashboard -> Settings -> Permalinks -> Save. (just automatically recreates your .htaccess again).

If the problem persists. Try disabling plugins. Enable plugins 1 by 1 until the problem occurs again. That will narrow down the faulty plugin.

share|improve this answer
it turned out i mistakenly change folder permission on wp-admin and wp-includes 3.5 hours wasted. – Jermaine Hercules May 18 '12 at 15:53

If ALL you did was to change wp-config.php permissions, look on your folder (or on a fresh WP folder) for wp-config-sample.php, make a copy of it, and fill in the database connection lines again.

Then rename wp-config to wp-config-OLD.php and the copy of wp-config-sample to wp-config.php and you should be fine.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.