Mod_rewrite: url rewriting plus subdomain (wildcard) rewrite at the same time?

Try this rule: RewriteCond %{HTTP_HOST}! ^www\. Example\.

Com$ NC RewriteCond %{HTTP_HOST} ^(www\. )?(^. +)\.

Example\. Com$ NC RewriteRule ^(A-Za-z0-9_)(:! -',+)/?

$ /file. Php? Item1=%2&item2=$1 QSA It uses conditions of the first rule and URL path pattern of the second.

For subdomain rewriting: xxx.domain.com is internally redirected to file. RewriteCond %{HTTP_HOST} ^(www.)?(^. RewriteRule ^$ /file.

What I need to achieve is writing a third rule that will combine these two rules without being in conflict with them. So that http://xxx.domain.com/yyy will be redirected to anotherfile.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions