In response to a message [Andy Warwick] sent [12:19 26.04.02 +0100]:
Hi Andy,
this works on my machine:
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_NAME} ^dev
RewriteCond %{REQUEST_URI} ^/client1
RewriteRule /client1(.*) http://example.com/client1$1 [R]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule /(.*) http://example.com$1 [R]
#redirect to main root dir:
RewriteRule /(.*) http://example.com$1 [R]
RewriteEngine on
#This is need when used in .htaccess file:
RewriteBase /
#If it's your dev. subdomain:
RewriteCond %{SERVER_NAME} ^dev
#and if the URI starts with /client1:
RewriteCond %{REQUEST_URI} ^/client1
#redirect to main domain's client dir:
RewriteRule /client1(.*) http://example.com/client1$1 [R]
#OTOH when calling the root dir:
RewriteCond %{REQUEST_URI} ^/$
#redirect to main root dir:
RewriteRule /(.*) http://example.com$1 [R]
HTH
hpoe
--
Henning Poerschke http://webmediaconception.com
+49-700-WMCONCEPT mailto:hp at webmediaconception.com