mod_rewrite и ErrorDocument

Mosik

Новичок
mod_rewrite и ErrorDocument

Доступ к сайту может осуществляться несколькими способами
1. http://shop.orixi.com.ua/
2. http://localhost/orixi/

В .htaccess прописано:
PHP:
RewriteEngine On
RewriteCond %{REQUEST_URI}  ^/orixi.*
RewriteRule . - [E=PREF:/orixi]
RewriteRule ^(.*).html$ %{ENV:PREF}/index.php [E=USER_URL:%{REQUEST_URI}]

ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html
Проблема в том что
http://shop.orixi.com.ua/news_1.test
нормально показывает страничку с 404 а
http://localhost/orixi/news_1.test
нет

Как сделать так чтобы в обоих случаях показывалась моя 404?
 
Сверху