fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-07-21 11:11 pm

[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 [personal profile] scamper.

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', 
         );
 
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org