Subdomain rewrite rules for file access not to effect main site files?

This would be how you could do them on an individual basis RewriteCond %{HTTP_HOST} ^abc\. Domain\. Com$ NC RewriteRule (.*)$ domain.com/file.php?var=abc L RewriteCond %{HTTP_HOST} ^def\.

Domain\. Com$ NC RewriteRule (.*)$ http://www.domain.com/file.php?var=def L.

This would be how you could do them on an individual basis. RewriteCond %{HTTP_HOST} ^abc\. Domain\.

Com$ NC RewriteRule (.*)$ domain.com/file.php?var=abc L RewriteCond %{HTTP_HOST} ^def\. Domain\. Com$ NC RewriteRule (.*)$ http://www.domain.com/file.php?var=def L.

No The subdomains are dynamic and I need a general rule that whenever a subdomain calls a file then that file should be called with the VAR= SUBDOMAIN arguments so that the file can process for the subdomain... I can not have hardcoded rules... – HardCode Oct 5 at 13:12.

The solution is something like this RewriteCond %{HTTP_HOST}! ^www\. Domain\.

Com$ NC RewriteCond %{HTTP_HOST} ^(.*)\. Domain\. Com$ NC RewriteCond %{QUERY_STRING} ^$ RewriteRule ^(.*)$ http://www.domain.com/index.php?subdomain=%1 L RewriteCond %{HTTP_HOST}!

^www\. Domain\. Com$ NC RewriteCond %{HTTP_HOST} ^(.*)\.

Domain\. Com$ NC RewriteCond %{QUERY_STRING}! ^$ RewriteRule ^(.*)$ http://www.domain.com%{REQUEST_URI}?

%{QUERY_STRING}&subdomain=%1 L.

RewriteCond %{HTTP_HOST} ^(^\. RewriteCond %{REQUEST_URI} ^/news/news-details\. RewriteRule (.*) news.

RewriteCond %{HTTP_HOST} ^www. RewriteCond %{HTTP_HOST} ^(.+)\. Php$ news.

RewriteCond %{HTTP_HOST} ^(www\.)? RewriteRule ^(.*)$ index. # For Accessing Divisions Page user.

Domain.com should go to domain.com/divisions. RewriteCond %{HTTP_HOST} ^(.*)\. RewriteRule ^$ /divisions.

# For www. Domain.com it should go to my-index. RewriteCond %{HTTP_HOST} ^(www\.)?

RewriteRule ^(.*)$ my-index. RewriteCond %{REQUEST_URI} ^/news/news\-details\. RewriteCond %{HTTP_HOST} ^www\.

RewriteRule ^(.*)$ my-news.

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