diff --git a/www/.htaccess b/www/.htaccess
index 7ac65d1..8b79b3c 100644
--- a/www/.htaccess
+++ b/www/.htaccess
@@ -5,6 +5,8 @@ RewriteEngine On
# -------------------------------------------
RewriteRule ^blog/([^/]+)/?$ /blog.php?id=$1 [L,QSA]
+RewriteRule ^sitemap\.xml$ /sitemap.php
+
# ----------------------------------------------------
# 2. Rewrite /lib/* or /blog/* to /error.php?code=404
# with 404 response code (internal rewriting)
diff --git a/www/blog.php b/www/blog.php
index 6346017..072a275 100644
--- a/www/blog.php
+++ b/www/blog.php
@@ -29,6 +29,8 @@ $rand_send_comment = mt_rand() % 5;