I have installed my WordPress on my website and I’m using permalinks, but I have a folder called x in the main root of my website I can’t access it now when I type http://mywebsite/x it redirects me to error 404 not found. That’s because WordPress is trying to fitch the story that called x in the database. How can I exclude that folder and its childern “folders” from wrodpress calculations?
I have installed my WordPress on my website and I’m using permalinks, but I
Share
The
.htaccessfile in the root of your website’s directory contains a RewriteRule which redirects every incoming request to WordPress’s bootstrapper. It probably looks something like this:You should add two Conditions to this Rule. These conditions provide exceptions that make sure the Rule is only executed if there is no (
!) file (-f) or no directory (-d) available that matches the requested URL:That should do the trick.