Support » Plugin: Google XML Sitemaps » Stop htaccess file from blocking my sitemap

  • fourwhitesocks

    (@fourwhitesocks)


    I have code added an htaccess file into my wp-content folder to help protect it for security reasons, but it is blocking my xml sitemap. Below is the code, I’m sure that it prob has something to do with the xml or css directives in this code; however I would like to keep this security measure in place.

    ** I’m also confused but it seems that maybe Google can still see my sitemap, I’m not getting any error ‘codes’ but I am getting the Error loading stylesheet: Parsing an XSLT stylesheet failed in FireFox.

    How would I rework this code to meet both needs? View the sitemap and have the security of that htaccess file??

    order deny,allow
    deny from all
    <files ~ ".(xml|css|jpe?g|png|gif|js|pdf|svg|ttf)$">
    allow from all
    </files>

    ** I tried removin the css portion of code block above but still had the same issue

    THANK YOU!

    • This topic was modified 2 months ago by fourwhitesocks. Reason: More clear
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.