I have a project im working on, when a user tries to accesses x.website.com it would show results for a specific state, how would I go about this without making 52 subdomains manually?
Is there a way to do it with htaccess? but this should also work if, state.website.com/search.php is accessed, it would show all the results for state X so I need it to be a constant variable.
Or is there a better way? Could anyone help?
Thank you