Hmm..I am not so good at .htaccess, what should I type?
I tried the following without success:
<VirtualHost *>
ServerName www.tec4dev.be/www
ServerAlias www.tec4dev.be
</VirtualHost>
---> Server Error
<VirtualHost *>
DocumentRoot /public_html/www
ServerName www.tec4dev.be
</VirtualHost>
---> Server Error (with absolute path, same)
By the way, I am using a hosting provider, I don't have access to all directories, maybe that's why, I dunno.
Anyway, your URL made me search some further and I found the solution (heavens know how):
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.* [NC]
RewriteRule ^(.*) /www/$1 [L]
Anyway, thanks for trying.
Main Topics
Browse All Topics





by: chilternPCPosted on 2007-10-03 at 09:58:36ID: 20008169
I use alias's for this function so when people type in www.chilternpc.co.uk they get www.chilternpc.com content, but the address is still www.chilternpc.co.uk
com/showth read.php?t =45712
so can you not set "web addressA" as an alias to "websaddressB"
to do this in apache see
http://forums.macosxhints.