WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Parneix
    Member
    Posted 1 year ago #

    WordPress version: 3.5.1
    WordPress SEO version: 1.3.4.4

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

    <Files *.php>
    deny from all
    </Files>

    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
    </Files>

    Any tip would be appreciated!

    P.

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Parneix
    Member
    Posted 1 year ago #

    I tried this:

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic