XF 1.3 Cookies: 2 Domains, 1 Forum

taylor_smith

Well-known member
I have one forum installation installed at http://noobist.com/community. The website noobist.com is part of a WordPress Multisite network, which includes noobist.tv. For some reason, http://noobist.tv/community also points to the same forum installation (same software, database, etc.).

The only difference: cookies don't carry between the domains.

What are my options here? Can I enable cross-domain cookies so people stay logged in? Should I just set up a permanent redirect from noobist.tv/community > noobist.com/community? I'd sort of prefer the former, but maybe the latter is the only way.
 
You should perform a redirect if you wish the community to be at .com. Otherwise, cross domain cookies aren't really a "thing" and would require an add-on to create both.
 
Well, since Noobist.TV is a separate brand, it'd be nice to have both functioning. But I haven't always had much luck finding addon developers for cross-domain-type products. Ah, well.

Thanks.
 
You should perform a redirect if you wish the community to be at .com. Otherwise, cross domain cookies aren't really a "thing" and would require an add-on to create both.
There was an error adding the redirect.

You cannot redirect "community" to "http://noobist.com/community" as this will cause a redirection loop because "/home2/noobist/public_html/community" is at the same place as "/home2/noobist/public_html/community".

Since noobist.tv is part of the WPMU network, they all sit on the same root directory.
 
I already have some rewrite rules in my .htaccess. Should I be concerned about adding more rules? Here's what I have currently:

Code:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
 
Additional rules would be fine. You would need to add them to the top though (or at least before that last block as that's a catch-all).
 
Top Bottom