actiemonitor
08-12-2006, 04:45 PM
Hi,
I'm trying to get a redirect for the whole directory in a webroot to a sub directory working
This is the situation:
http://test.domain.com
Every file (and no file) must redirect from /test to test/subdir/ (/test is a dir in de webroot working as a subdomain)
This is what I have.
RewriteEngine on
RewriteRule ^/(.*)$ /subdir/$1 [QSA,R,L]
Which is not working. It will continue serving my index.php from the test.domain.com instead of test.domain.com/subdir/
AND ;) I want that it will not shown in the URL.
Anybody any idea?
thnx in advance.
I'm trying to get a redirect for the whole directory in a webroot to a sub directory working
This is the situation:
http://test.domain.com
Every file (and no file) must redirect from /test to test/subdir/ (/test is a dir in de webroot working as a subdomain)
This is what I have.
RewriteEngine on
RewriteRule ^/(.*)$ /subdir/$1 [QSA,R,L]
Which is not working. It will continue serving my index.php from the test.domain.com instead of test.domain.com/subdir/
AND ;) I want that it will not shown in the URL.
Anybody any idea?
thnx in advance.