Subdomains and Xenforo


Well-known member
My movie forum (example) gets some subdomains: which displays all forums which displays the general forums and the horror forums

Every thread and every forum only belong to one "subdomain" to avoid redundant links. When a user visits a horror movie thread he will be redirected to if he came from If the user accesses the same thread from the thread will be displayed and he will not be redirected. From a programmers perspective every forum is targeted with a subdomain or with being a general forum (no subdomain)

ControllerPublic/Index will check the subdomain ( or and manipulates the forum list to either only display horror movies (along with the general forums) or display everything when accessed from

ControllerPublic/Forum will 1. check the database and manipulate the thread target url (adds "horror." to some threads) and when accessed from 2. checks against being accessed within the right subforum and if not it will send out a redirect to display the forum on

ControllerPublic/LinkForum same as Forum

ControllerPublic/Thread will check the database and do the same as for the ControllerPublic/Forum. And of course do something within the models like: getThreadRedirectById

ControllerPublic/Post same as Thread

Are there cookie problems and other things to care about?