Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19296

Pothi Kalimuthu on "[Plugin: W3 Total Cache] 404 for Sitemap & robots.txt with Browser Cache on"

$
0
0

Could be a bug with W3TC. To overcome this, you may use those URLs hardcoded in nginx configuration like this...

server {
  server_name domainname.com;
  # other directives

  location = /robots.txt {
    try_files $uri /index.php;
  }

  location = /sitemap.xml {
    try_files $uri /index.php;
  }

  location = /sitemap.xml.gz {
    try_files $uri /index.php;
  }

}

I hope this helps.


Viewing all articles
Browse latest Browse all 19296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>