Wildcard .htaccess rewrite subdomain to a subdirectory with subdomain as GET variable
问题 Sample Urls: http://username1.example.com/inventory/ http://username2.example.com/profile/about http://example.com/products/category/ Rewrite to: http://example.com/subdomains/inventory/?user=username1 http://example.com/subdomains/profile/about?user=username2 http://example.com/products/category/ I think I have searched most of the internet for this. How do I rewrite the path by adding "subdomains" folder immediately after the domain and pass the subdomain as GET variable to access it via