Hello all,
I have a problem and i hope you all can help.
I have made a rewrite rule for a subdomain
Code:
<VirtualHost *:80>
DocumentRoot "/var/www/subdomain/document"
ServerName subdomain.domain.nl
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.nl$
RewriteRule ^/(.*)$ http://domain.nl/document/%1.html [L,R]
<Directory "/var/www/domain/document">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
my problem is
when i go to http://subdomain.domain.nl the new url becomes http://domain.nl/document/subdomain.html
what i want is that when i go to http://subdomain.domain.nl the page with the name like the subdomain is loaded without the long url.
What have i made wrong.
Bookmarks