We help IT Professionals succeed at work.

Access blocked to XML files other than sitemap.xml?

Last Modified: 2017-04-12
I have a wordPress installation with a number of XML files in a directory.

Starting today, I can't seem to directly access (except via FTP or SSH) those .xml files.  The only one that seems to come up is sitemap.xml.  But all others - if I try to call them directly - return 404 errors.

The htaccess for my WordPress installation is the normal:

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

Any ideas how I would fix that?  Like I said, it was working up until this morning.
Watch Question


Are the files in a specific directory? Can you access other files in that directory?

probably the permissions of the files/folders - have you installed a plugin like Wordfence? (added security) it can change the permissions ot the folders,   the folders/files may have there permissions set to only allow scripts to access them (server side)  so trying look at them using the client and  http will be stopped.


Yes, I can access other files in the directory.  For example, I threw a TXT file in there, and I can access that.
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions