Forums

use custom taxonomy as subdomain (2 posts)

  1. henri
    Member
    Posted 4 months ago #

    Hi all,

    I want to use my custom taxonomy (mytaxonomy) as subdomain of domain.com but I don't want to use the multisites option. I try this but without any result...

    I have a wildcard DNS and had a vhost redirect for the subdomain mytaxonomy.domain.com like this :

    RewriteEngine on
            RewriteRule ^/(.*)         http://www.domain.com/mytaxonomy/$1 [L]

    and use this class in the wordpress installation of domain.com named class.rewritetax.php in the inc folder:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    And of course this in my functions.php

    require( TEMPLATEPATH . '/inc/class.rewritetax.php' );
  2. henri
    Member
    Posted 4 months ago #

    Here is the pastebin : http://pastebin.com/cK0Du9h8

Reply

You must log in to post.

About this Topic