2

I've read other answers but they weren't satisfactory.

I did try the second option as it seemed perfect for my needs, however, what happens is that while a category is perfectly mapped to a domain, single articles are not and default to the original domain name.

I need to have each category keep its domain name when posts or sub-categories are clicked.

i.e.: http://mywebsite.com/gastronomy/

becomes http://mywebsite-gastronomy.com

And: http://mywebsite.com/2013/10/15/an-article

becomes http://mywebsite-{FIRST_CATEGORY_OF_THE_ARTICLE}.com/an-article

Is this at all possible with URL trickery or plugins?

  • 2
    Just so as people know what you already tried and don't offer the same solution, which were those answers "not satisfactory"? – brasofilo Oct 18 '13 at 14:02
  • I did try the second option as it seemed perfect for my needs, however, what happens is that while a category is perfectly mapped to a domain, single articles are not and default to the original domain name. – Krimo Oct 18 '13 at 16:24
  • This question seems to be important, in that I have seen it asked a number of times, but there are no solutions provided. I believe I understand why: the posts are attached to the categories in the database with each page/post running on the same template as the rest of the posts/pages. I think this will take some clever .htaccess redirects. Maybe even brute force 301 redirects. – Nora McDougall-Collins Mar 4 '18 at 23:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.