I can't get my domain to work without the subdir.
I have www.liefdeknopen.nl and its installed in liefdeknopen.hoekvanameland.nl (outside VirtualDocumentRoot)
Its accessable thru liefdeknopen.nl (with no subdir) and thru www.liefdeknopen.nl
These are my mod_rewrite. I tried everything. But i cant get the www.domain.com/ show WITHOUT the subdir
liefdeknopen.nl is working with not showing the subdir like it should
- Code: Select all
RewriteCond %{HTTP_HOST} liefdeknopen\.nl [NC]
RewriteCond %{REQUEST_URI} !/liefdeknopen [NC]
RewriteRule (.*) /liefdeknopen/$1 [NC,QSA,L]
RewriteRule /(.*) http://liefdeknopen.nl/$1 [R=301,L]
# Rewrite sub domains.
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^(www\.)?liefdeknopen\.nl$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.liefdeknopen\.nl$ [NC]
RewriteRule ^(.*)$ /%2/$1 [QSA,L]
What am i doing wrong?? [/b]