.htaccess Wildcard Subdomains
- SEO |
I have viewing the city names in my website like the following structure -
www.mydomain.com/state/city/
Here is the ,htaccess code-
RewriteRule ^([^/]*)/([^/]*)/$ city.php?state=$1&city=$2 [NC]
But actually, I'm looking for to use wildcard subdomains that will rebuild the city names like the following structure-
city.mydomain.com/state/
Can you help me? I just need the htaccess rewrite code.