.htaccess - URI not rewritten although it matches rewrite condition -


one of clients has multiple domains point 1 webspace. avoid duplicate content uris rewritten point 1 place. using code below works 2 of them. far can tell there nothing special them.

sadly don't have administrative access domains, best of understanding .htaccess should enough.

does have idea problem be?

the rule:

<ifmodule mod_rewrite.c>   rewritecond %{https} !=on   rewritecond %{http_host} !^example\.com$ [nc]   rewriterule ^ http://example\.com%{request_uri} [r=301,l] </ifmodule> 


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -