Elxis CMS Forum

Support => General => Topic started by: xmanhattan on October 16, 2012, 15:46:53

Title: htaccess robots allow xml
Post by: xmanhattan on October 16, 2012, 15:46:53
Hello all,

While checking the validity of links via w3c, I noticed that the sitemaps are being shown as errors.

for htaccess
Code: [Select]
<Files ~ "\.xml$">
    Order allow,deny
    deny from all
    Satisfy All
</Files>

<FilesMatch  "^(js|html|xml)\.*$">
Order deny,allow
Deny from all
Satisfy all
</FilesMatch>

for robots
Code: [Select]
Allow: /cache/rss20-greek.xml
Allow: /cache/rss20-english.xml

Is the code safe to be added to htaccess and robots txt files?
If not, what is the best way of fixing this?

Title: Re: htaccess robots allow xml
Post by: xmanhattan on October 18, 2012, 09:43:33
Has anyone used this?