[dw-free] Move communities/feeds to individual subdomains, not community.*/syndicated.*
[commit: http://hg.dwscoalition.org/dw-free/rev/cd84ab154e34]
http://bugs.dwscoalition.org/show_bug.cgi?id=265
Stop sending syn/comms to subdomains.
Patch by
afuna.
http://bugs.dwscoalition.org/show_bug.cgi?id=265
Stop sending syn/comms to subdomains.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
-------------------------------------------------------------------------------- diff -r 7de94a158fac -r cd84ab154e34 cgi-bin/Apache/LiveJournal.pm --- a/cgi-bin/Apache/LiveJournal.pm Fri Feb 20 10:11:42 2009 +0000 +++ b/cgi-bin/Apache/LiveJournal.pm Fri Feb 20 10:14:21 2009 +0000 @@ -415,11 +415,9 @@ sub trans my $u = LJ::load_user($orig_user); # do redirects: - # -- communities to the right place # -- uppercase usernames # -- users with hyphens/underscores, except users from external domains (see table 'domains') - if ($u && $u->is_community && $opts->{'vhost'} =~ /^(?:users||tilde)$/ || - $orig_user ne lc($orig_user) || + if ( $orig_user ne lc($orig_user) || $orig_user =~ /[_-]/ && $u && $u->journal_base !~ m!^http://$host!i && $opts->{'vhost'} !~ /^other:/) { my $newurl = $uri; --------------------------------------------------------------------------------