diff --git a/.htaccess b/.htaccess
index e4f344e9..c1167dbf 100644
--- a/.htaccess
+++ b/.htaccess
@@ -39,5 +39,6 @@ ErrorDocument 500 /www/error500.html
RewriteEngine On
+ RewriteBase /
RewriteRule ^(.*)$ www/$1 [L]
diff --git a/www/.htaccess b/www/.htaccess
index 29a1faa5..63163a80 100644
--- a/www/.htaccess
+++ b/www/.htaccess
@@ -1,6 +1,7 @@
RewriteEngine On
+ RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L,NE]