Redirect shop.dreamwidth.org/stuff to www.dreamwidth.org/shop/stuff, 
and mobile.dreamwidth.org to www.dreamwidth.org/mobile


        Patch by scamper. 

diffs (30 lines):

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', 
         );
 
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to