RewriteBase works incorrect, don't know why. I have web-site in www/folder/ directory. But document_root is www here. I added this code to www/.htaccess: Options +FollowSymLinks +ExecCGI RewriteEngine On RewriteBase /folder/ Code (markup): In this case website works like with RewriteBase /. That is strange. Here is my httpd.conf <Directory /> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> Code (markup): httpd-vhosts.conf <VirtualHost 127.0.0.1:80> DocumentRoot D:/localhost/www ServerName site.ru ServerAlias www.site.ru ErrorLog D:/localhost/www/error.log CustomLog D:/localhost/www/access.log common <Directory "D:/localhost/www"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Code (markup): Also I've tried to restart apache without directory in virtualhost. - got the same. What is going on here? Why it doesn't work? Plz, help