View Single Post
  #10  
Old 25th May 2007, 08:54
PierreR32 PierreR32 is offline
Junior Member
 
Join Date: Aug 2006
Location: Nuernberg
Posts: 22
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Sorry i Have a question.

by the code
Code:
... "\nRewriteRule   ^/(.*)$  http://".$servername.$domain["domain_weiterleitung"]."$1  [R]";
Must i Remove ONLY the PART with [R] or the complete Line ?

Also this Part ?

Code:
 $rewrite_rule .= "\nRewriteCond %{HTTP_HOST}   ^".$rewrite_cond_url." [NC]";
          if(substr($domain["domain_weiterleitung"],0,4) == "http" || substr($domain["domain_weiterleitung"],0,4) == "HTTP"){
            $domain["domain_weiterleitung"] = strtolower($domain["domain_weiterleitung"]);
            if(substr($domain["domain_weiterleitung"],-1) == "/") $domain["domain_weiterleitung"] = substr($domain["domain_weiterleitung"],0$
            $rewrite_rule .= "\nRewriteRule ^/(.*)         ".$domain["domain_weiterleitung"]."/$1 [L,R]";
          } else {
            //if(substr($domain["domain_weiterleitung"],-1) != "/") $domain["domain_weiterleitung"] .= "/";
            if(substr($domain["domain_weiterleitung"],0,1) != "/") $domain["domain_weiterleitung"] = "/".$domain["domain_weiterleitung"];
            $rewrite_rule .= "\nRewriteRule   ^/(.*)$  http://".$servername.$domain["domain_weiterleitung"]."$1  [R]";
Thx for Help.

Greetz Pierre
Reply With Quote