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 changed my WordPress permalinks settings from the default to displaying the name of the post. When I did this, all the files that I had been storing in the directory with WordPress (www.example.com/notpartofwp.html) suddenly displayed wordpress style 404 errors.

  1. Is this normal WordPress behavior?
  2. If so, what can I do about it?
share|improve this question

in short this is normal ... i guess you added stuff to your .htaccess file between the # BEGIN WordPress and # END WordPress

What happened when you changed the permalinks is that WordPress changed that section of the .htaccess file.

So you need to open and insert the rewrite rules into your .htaccess file - BUT not between the WordPress tags

I hope you have a backup copy of the old .htaccess file?

share|improve this answer
I think I figured out the problem. I was trying to rewrite a separate /file.php to /file and I think the wordpress rewrites are interfering with my rewrite. Do you know how to prevent this? – fdsa Aug 26 '12 at 0:01
@fdsa Please post your current .htaccess file's content to see what could be done to prevent the 404 error. – Pothi Aug 26 '12 at 5:23
@fdsa Move your custom rewrites above the WordPress rules, and add the [L] modifier to any rewrites you do so as to make that the "last" rewrite modifier when it matches. – Otto Aug 26 '12 at 15:17

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.