I try to get CMSMS working with mod_rewrite enabled. Everything works fine, besides one thing. I have a page named sitemap and a file called sitemap.xml.gz. Now if I go to http://www.k-d-w.org/sitemap/ an error message is displayed and the apache log says:
This behaviour is very weird to me and don't have any clue what could have gone wrong. Hopefully, someone here can help me with this.File does not exist: /is/htdocs/wp1075967_82SQVOPJHD/www/sitemap.xml.gz
I uploaded the following htaccess file:
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^([A-Za-z0-9-/]+)/?$ index.php?page=$1 [QSA]