[dw-free] redirect shop.dreamwidth.org to dreamwidth.org/shop/
[commit: http://hg.dwscoalition.org/dw-free/rev/976ad2c8b89a]
http://bugs.dwscoalition.org/show_bug.cgi?id=1059
Redirect shop.dreamwidth.org/stuff to www.dreamwidth.org/shop/stuff, and
mobile.dreamwidth.org to www.dreamwidth.org/mobile
Patch by
scamper.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1059
Redirect shop.dreamwidth.org/stuff to www.dreamwidth.org/shop/stuff, and
mobile.dreamwidth.org to www.dreamwidth.org/mobile
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/Apache/LiveJournal.pm
- etc/config.pl
-------------------------------------------------------------------------------- diff -r f43e65dfa3e9 -r 976ad2c8b89a cgi-bin/Apache/LiveJournal.pm --- a/cgi-bin/Apache/LiveJournal.pm Wed Jul 21 16:32:39 2010 -0500 +++ b/cgi-bin/Apache/LiveJournal.pm Wed Jul 21 16:11:45 2010 -0700 @@ -836,6 +836,14 @@ sub trans } elsif ($func eq 'support') { return redir($r, "$LJ::SITEROOT/support/"); + + } elsif ($func eq 'shop') { + + return redir($r, "$LJ::SITEROOT/shop$uri"); + + } elsif ($func eq 'mobile') { + + return redir($r, "$LJ::SITEROOT/mobile$uri"); } elsif (ref $func eq "ARRAY" && $func->[0] eq "changehost") { diff -r f43e65dfa3e9 -r 976ad2c8b89a etc/config.pl --- a/etc/config.pl Wed Jul 21 16:32:39 2010 -0500 +++ b/etc/config.pl Wed Jul 21 16:11:45 2010 -0700 @@ -52,6 +52,8 @@ users => 'journal', syndicated => 'journal', cssproxy => 'cssproxy', + shop => 'shop', + mobile => 'mobile', ); --------------------------------------------------------------------------------