Justin Pasher wrote:
If you have more (sub)domains that point to the same virtualhost, then you won't be able to use the above directive as-is, since it's designed to funnel ALL requests through www.csulb.edu. It's mainly designed for sites that have a handful of alias domains, but only one primary domain. The redirect makes sure all traffic see the same domain in the URL (and it also aids in generating traffic statistics when different domains are treated as different sites to the outside world).If you only have a small handful of domains that should be left alone, you can put some exceptions in the rules, like this:# leave these domains alone RewriteCond %{HTTP_HOST} ^www\.cota\.csulb\.edu$ [NC,OR] RewriteCond %{HTTP_HOST} ^cota\.csulb\.edu$ [NC] RewriteRule . - [L] # push everyone else to www.csulb.edu RewriteCond %{HTTP_HOST} !^www\.csulb\.edu$ [NC] RewriteRule ^/(.*) http://www.csulb.edu/$1 [R=permanent,L]
Hey Justin,I'll forward this over to our admins and see what they think. I appreciate all of your help!!
thanks! Mike --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx