Hi
I've been trying to use the virtual user hosts feature of mod-rewrite:
I want to make:
http://www.arnold.outuk.com
find a page which is at
http://www.outuk.com/webspace/arnold/index.html
("arnold" is one of loads of different user names - currently just a page under construction)
The best code i've used so far is :
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.[^.]+.outuk.com$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^www.([^.]+).outuk.com(.*) /webspace/$1/$2/index.html
which I have placed in a .htaccess file in the http://www.outuk.com directory.
It gives me an error message:
Forbidden
You don't have permission to access
/webspace/arnold/webspace/arnold/webspace/arnold/webspace/arnold/webspace/arnold/webspace/arnold/index.html/index.html/index.html/index.html/arnold/index.html/index.html/index.html/index.html/index.html/arnold/webspace/arnold/index.html/index.html/index.html/index.html/arnold/index.html/index.html/index.html/index.html/index.html/index.html/arnold/webspace/arnold/webspace/arnold/index.html/index.html/index.html/index.html/arnold/index.html/index.html/index.html/index.html/index.html/arnold/webspace/arnold/index.html/index.html/index.html/index.html/arnold/index.html/index.html/index.html/index.html/index.html/index.html/index.html/arnold/webspace/arnold/webspace/arnold/webspace/arnold/index.html/index.html/index.html/index.html/arnold/index.html/index.html/index.html/index.html/index.html/arnold/webspace/arnold/index.html/index.html/index.html/index.html/arnold/index.html/index.html/index.html/index.html/index.html/index.html/arnold/webspace/arnold/webspace/arnold/index.html/index.html/index.html/index.html/arnold/index.html/index.html/index.html/index.html/index.html/arnold/webspace/arnold/index.html/index.html/index.html/index.html/arnold/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html
on this server.
Apache/1.3.19 Server at http://www.arnold.outuk.com Port 80
Why does it keep repeating - It's almost correct if you take the first bit and the last !
Any help or ideas would be much appreciated.
Snow