Jump to content

Wordpress and subdomains


stargate03

Recommended Posts

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

 

 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/127120-wordpress-and-subdomains/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.