Hello Guys,
I have the following .htaccess code. The user enters in the address bar the URL: subdomain.domain.com and the apache server redirects to to
www.domain.com?index=subdomain.
RewriteCond %{HTTP_HOST} !^www\.domain\.com
RewriteCond %{HTTP_HOST} ([^.]+)\.domain\.com
RewriteCond %{REQUEST_URI} !^/index$
RewriteCond %{QUERY_STRING} !^c=.
RewriteRule (.*) /index?c=%1 [L]
But i want to modify it and retain the virtual subdomain. For example: subdomain.domain.com/login , subdomain.domain.com/account etc.
Also, I have already enabled Wildcard DNS for virtual sub-domains.
Thank you in advance.