title: URL Rewriting sitemap.xml with Joomla and Xmap
body: <p>I'm using Xmap to create an XML sitemap for my Joomla website. I can access the sitemap by going to index.php?option=com_xmap&amp;view=xml&amp;tmpl=component&amp;id=1</p>
  
  <p>I want to use Apache's URL rewriting to make this available via "sitemap.xml" instead, so I tried using this code in .htaccess:</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^sitemap\.xml$ index.php?option=com_xmap&amp;view=xml&amp;tmpl=component&amp;id=1 [L]
  </code></pre>
  
  <p>However that gives me an error message:</p>
  
  <blockquote>
    <p>Error 500 - View not found [name, type, prefix]: xml, xml, xmapView</p>
  </blockquote>
  
  <p>What do I need to do to get this working?</p>
  
  <p>(If it makes a difference, the site is running from a sub-directory, not the root of the domain)</p>