.htaccess mod_rewrite transparent redirect

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • piku
    Senior Member
    • Mar 2004
    • 153

    .htaccess mod_rewrite transparent redirect

    is there anyway to achieve this w/ .htaccess?

    "sub1.domain1.com 14400 in CNAME sub2.domain2.com"

    i have the following, but would like it to keep http://sub1.domain1.com/*...

    Code:
    RewriteCond %{HTTP_HOST} ^(www\.)?sub1\.domain1\.com [NC]
    RewriteRule ^(.*)$ http://sub2.domain2.com/$1 [R,L]
    my signature was deleted. i miss my signature-filled-with-helpful-dathorn-links *sniff*sniff*
Working...