WordPress.org

Ready to get started?Download WordPress

Forums

Override wildcard sub-domains on WP Multisite (MediaTemple DV) (6 posts)

  1. just2izy
    Member
    Posted 4 years ago #

    I'm in a bit of a pinch but not so far down the road I cannot change if required. I have WP 3.0 installed with sub-domains setup working beautifully.

    I need to know from the experienced MU & Multisite people if it is possible to override WP not to run every sub-domain, although that is what we setup the wildcard subdomains on the servers for.

    I want to install Magento on shopping.mydomain.com but I've tried vhosts.conf files and reached out on some forums with no real response and its beyond the support policy of MediaTemple my web hosts.

    What solutions are available through virtual hosts, DNS, plugins or SIMPLY starting over with Sub-Directory Install (Ouch!!)

  2. Yep.

    Put the subdomain on the banned blog name list under Site/Super Admin.

    You may also have to have the hard reference to your subdomain above the wildcard subdomain in httpd.conf.

    Yeah, it can be maddening, but it's doable.

  3. just2izy
    Member
    Posted 4 years ago #

    Well its been maddening alright. I still haven't fully gotten it to work the way I expected using httpd.include or vhost configs. I just don't get MediaTemple's configs enough. I need a little help.

    1. Movin to Sub-directory

    This will give more and easier access to using physical subdomains the way I'm used to making installing Magento and any other OS software we decide to use for other stuff easier (is it ever easy??).

    However the SEO implications are my major consideration for not wanting to do this and also your warnings around that it may make things more complicated.

    I think I shd find around some .htacces wizardry (any pointers??) for pointing tech.233.com.gh to 233.com.gh/TECH to gain the same advantages of a subdomain install from SEO right?

    2. URL changes

    Upload Path: wp-content/blogs.dir/2/files changes to what for sub-directory??

    Fileupload Url: http://lifestyle.233.com.gh/files changes to ?? My guess: http://233.com.gh/lifestyle/files

    3. Is blogs.dir applicable in the subdirectory case??
    I did some custom code exploding the URL to get timthumb to work with subdomains (my theme dev did not optimize for WPMU so multisite broke his code).

    Thanks.

  4. just2izy
    Member
    Posted 4 years ago #

    I forgot to mention that I did get it 'working' by not using wildcards in my vhost.conf but specifying the exact domains WP shoudl control leaving all other domains controlled by normal DNS rules.

    Yes fff.233.com.gh (or even misspelled tceh.233.com.gh imstead of tech.233.com.gh) will revert to my servers default site. I am lookin for some .htaccess rewrite rules and conditions which would send all non-existent domains to WP but those that exist to either WP or their own DocumentRoots for other OSS softeare to run those subdomains.

    If that works, I'll stick to sub-domains cos I have control over each and every sub-site that will be deployed. The wildcard I need is so non-existent subdomains redirect to the main page or an error page.

  5. 2. URL changes

    Upload Path: wp-content/blogs.dir/2/files changes to what for sub-directory??

    Fileupload Url: http://lifestyle.233.com.gh/files changes to ?? My guess: http://233.com.gh/lifestyle/files

    No change. It's the same either way, it uses the blog_id. Format don't matter.

    Yes fff.233.com.gh (or even misspelled tceh.233.com.gh imstead of tech.233.com.gh) will revert to my servers default site. I am lookin for some .htaccess rewrite rules and conditions which would send all non-existent domains to WP but those that exist to either WP or their own DocumentRoots for other OSS softeare to run those subdomains.

    It's not an htaccess thing, it's a server config. ;) Best bet is to have the WP install the default site, so non exisitant ones fall there, everything else goes where it needs to.

  6. just2izy
    Member
    Posted 4 years ago #

    Yes. I figured that out and made the WP site the default so it handles misspelled and non-existent requests.

    Still need to figure out how to do it right so the other sites I have on that server do not redirect to the WP site, sigh... One problem at a time.

    Thanks.

    Ps. I stuck with sub domains when Andrea says sub directory install gives more technical issues in her opinion, you listen....

Topic Closed

This topic has been closed to new replies.

About this Topic