Yoast SEO
Authorizing xml-sitemap-xsl.php in hardened wp-content folder (2 posts)

  1. Parneix
    Posted 3 years ago #

    WordPress version: 3.5.1
    WordPress SEO version:

    1) My wp-content is hardened with a .htaccess file containing this code:

    <Files *.php>
    deny from all

    2) I want (need) to authorize xml-sitemap-xsl.php Otherwise I get this error in my error log:
    client denied by server configuration: /home/user/mysite.net/wp-content/plugins/wordpress-seo/css/xml-sitemap-xsl.php, referer: http://mysite.net/sitemap_index.xml

    3) I think I should add the following code but I’m not sure if it’s the right code nor where to place it:

    <Files "xml-sitemap-xsl.php">
    Allow from all

    Any tip would be appreciated!



  2. Parneix
    Posted 3 years ago #

    I tried this:

    <Files *.php>
        Order Deny,Allow
        Deny from all
    <Files xml-sitemap-xsl.php>
        Order Allow,Deny
        Allow from all

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic