Hi all
i am trying to work out how to do the following, im not great at php so u will have to bear with me if this isnt very technical
I have a wordpress blog hosted on my vps
i have configured wildcard dns so all dynamic subdomains point to a php file
now i want to capture the url of the subdomain
then compare it against a field in an array
ie url, blog name, blog theme
if the url is found then the values for those fields are used for the blog
obviously any post within the blog ie news.subdomain.com/path/blogpost must work with the subdomains details
if it doesnt match any within the array/field then its redirected to the main www domain
i am happy to have a go at writing it if someone can tell me all the things it needs to do and in what order
many thanks for your time ans effort