Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'add-apache-configs'

  • Loading branch information...
commit a61ea120cf0a55fd6a3f3a9c531d96860f1e0062 2 parents 30c64e8 + 75e0dca
Paul McLanahan pmclanahan authored
0  etc/httpd/demo.conf
View
No changes.
3  etc/httpd/dev.conf
View
@@ -0,0 +1,3 @@
+# bug 821006
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/all(\.html)?$ /$1firefox/all/ [L,R=301]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/all/$ /b/$1firefox/all/ [PT]
150 etc/httpd/global.conf
View
@@ -0,0 +1,150 @@
+## Redirect things to django!
+
+# bug 803345
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?apps(.*)$ /b/$1apps$2 [PT]
+
+RewriteRule ^/en-US/persona(.*)$ /b/en-US/persona$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?persona(.*)$ /en-US/persona$2 [L,R=302]
+RewriteRule ^/en-US/b2g(.*)$ /b/en-US/b2g$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?b2g(.*)$ /en-US/b2g$2 [L,R=302]
+RewriteRule ^/en-US/collusion(.*)$ /b/en-US/collusion$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?collusion(.*)$ /en-US/collusion$2 [L,R=302]
+
+# bug 737157
+RewriteRule ^/en-US/firefox/toolkit/download-to-your-devices(.*)$ /b/en-US/firefox/toolkit/download-to-your-devices$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/toolkit/download-to-your-devices(.*)$ /en-US/firefox/toolkit/download-to-your-devices$2 [L,R=302]
+
+RewriteRule ^/en-US(/?)$ /b/en-US$1 [PT]
+
+# bug 822260
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?about/mission.html$ /b/$1about/mission.html [PT]
+
+RewriteRule ^/en-US/about(/?)?$ /b/en-US/about$1 [PT]
+RewriteRule ^/en-US/about/partnerships(/?)$ /b/en-US/about/partnerships$1 [PT]
+RewriteRule ^/en-US/about/partnerships/distribution(/?)$ /b/en-US/about/partnerships/distribution$1 [PT]
+RewriteRule ^/en-US/mission(/?)$ /b/en-US/mission$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?mission/?$ /en-US/mission/ [L,R=302]
+
+# bug 793754
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?contribute(/?)$ /b/$1contribute/ [PT]
+
+RewriteRule ^/en-US/contribute(/?)$ /b/en-US/contribute$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?contribute(/?)$ /en-US/contribute/ [L,R=302]
+
+RewriteRule ^/en-US/contribute/page(/?)$ /b/en-US/contribute/page$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?contribute/page(/?)$ /en-US/contribute/page/ [L,R=302]
+
+# bug 787953
+RewriteRule ^/en-US/contribute/event(/?)$ /b/en-US/contribute/event$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?contribute/event(.*)$ /en-US/contribute/event$2 [L,R=302]
+
+RewriteRule ^/en-US/projects(/?)$ /b/en-US/projects$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?projects/?$ /en-US/projects/ [L,R=302]
+
+RewriteRule ^/en-US/firefox/new(/?)$ /b/en-US/firefox/new$1 [PT]
+RewriteRule ^/en-US/firefox/fx(/?)$ /b/en-US/firefox/fx$1 [PT]
+RewriteRule ^/en-US/firefox/features(/?)$ /b/en-US/firefox/features$1 [PT]
+RewriteRule ^/en-US/firefox/customize(/?)$ /b/en-US/firefox/customize$1 [PT]
+RewriteRule ^/en-US/firefox/performance(/?)$ /b/en-US/firefox/performance$1 [PT]
+RewriteRule ^/en-US/firefox/technology(/?)$ /b/en-US/firefox/technology$1 [PT]
+RewriteRule ^/en-US/firefox/security(/?)$ /b/en-US/firefox/security$1 [PT]
+RewriteRule ^/en-US/firefox/organizations(/?)$ /b/en-US/firefox/organizations$1 [PT]
+RewriteRule ^/en-US/firefox/organizations/faq(/?)$ /b/en-US/firefox/organizations/faq$1 [PT]
+RewriteRule ^/en-US/firefox/central(/?)$ /b/en-US/firefox/central$1 [PT]
+RewriteRule ^/en-US/firefox/happy(/?)$ /b/en-US/firefox/happy$1 [PT]
+RewriteRule ^/en-US/firefox/speed(/?)$ /b/en-US/firefox/speed$1 [PT]
+RewriteRule ^/en-US/firefox/update(/?)$ /b/en-US/firefox/update$1 [PT]
+RewriteRule ^/en-US/firefox/geolocation(/?)$ /b/en-US/firefox/geolocation$1 [PT]
+RewriteRule ^/en-US/firefox/channel(/?)$ /b/en-US/firefox/channel$1 [PT]
+
+# bug 796952
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/unsupported/(.*)$ /b/$1firefox/unsupported/$2 [PT]
+
+# bug 757117
+RewriteRule ^/en-US/webmaker(.*)$ /b/en-US/webmaker$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?webmaker(.*)$ /en-US/webmaker$2 [L,R=302]
+
+# bug 760194
+RewriteRule ^/en-US/dnt(.*)$ /b/en-US/dnt$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?dnt(.*)$ /en-US/dnt$2 [L,R=302]
+
+# bug 767614
+RewriteRule ^/en-US/mobile(/?)$ /b/en-US/mobile$1 [PT]
+RewriteRule ^/en-US/firefox/mobile/features(/?)$ /b/en-US/firefox/mobile/features$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/mobile/features(/?)$ /en-US/firefox/mobile/features/ [L,R=302]
+RewriteRule ^/en-US/firefox/mobile/faq(/?)$ /b/en-US/firefox/mobile/faq$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/mobile/faq(/?)$ /en-US/firefox/mobile/faq/ [L,R=302]
+RewriteRule ^/en-US/firefox/mobile/platforms(/?)$ /b/en-US/firefox/mobile/platforms$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/mobile/platforms(/?)$ /en-US/firefox/mobile/platforms/ [L,R=302]
+
+# bug 773739
+RewriteRule ^/en-US/projects/mozilla-based(/?)$ /b/en-US/projects/mozilla-based/ [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?projects/mozilla-based(/?)$ /en-US/projects/mozilla-based/ [L,R=302]
+RewriteRule ^/en-US/products(/?)$ /b/en-US/products/ [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?products(/?)$ /en-US/products/ [L,R=302]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox(/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?:[a|b]?)(?:\d*)(?:pre)?(?:\d)?))?/whatsnew(/?)$ /b/$1firefox$2/whatsnew/ [PT]
+
+# bug 778752
+RewriteRule ^/en-US/firefox/channel/android(/?)$ /b/en-US/firefox/channel/android$1 [PT]
+
+# bug 784737
+RewriteRule ^/en-US/firefox/memory(/?)$ /b/en-US/firefox/memory$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/memory(.*)$ /en-US/firefox/memory$2 [L,R=302]
+
+RewriteRule ^/en-US/styleguide(.*)$ /b/en-US/styleguide$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?styleguide(.*)$ /en-US/styleguide$2 [L,R=302]
+
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/sms(.*)$ /b/$1firefox/sms$2 [PT]
+
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?grants(.*)$ /b/$1grants$2 [PT] # bug 793181
+
+# request to ensure https is present for pluginchecks bug 795291
+RewriteCond %{ENV:HTTPS} !on
+RewriteRule ^/.*/plugincheck/ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
+
+# bug 797236
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefoxos(.*)$ /b/$1firefoxos$2 [PT]
+
+# bug 797337
+RewriteRule ^/en-US/contribute/areas.html$ /b/en-US/contribute/areas.html [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?contribute/areas.html$ /en-US/contribute/areas.html [L,R=302]
+
+# bug 798453
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/installer-help(.*)$ /b/$1firefox/installer-help$2 [PT]
+
+# bug 801705
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?gameon(.*)$ /b/$1gameon$2 [PT]
+
+# bug 799767
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?book(.*)$ /b/$1book$2 [PT]
+
+# bug 800461
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/brand(.*)$ /b/$1firefox/brand$2 [PT]
+
+# bug 800649
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?privacy/policies/facebook(.*)$ /b/$1privacy/policies/facebook$2 [PT]
+
+# bug 807323
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?foundation/identity-guidelines(.*)$ /b/$1foundation/identity-guidelines$2 [PT]
+
+# bug 809426
+RewriteRule ^/en-US/legal/eula(/?)$ /b/en-US/legal/eula$1 [PT]
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?legal/eula(/?)$ /en-US/legal/eula$2 [L,R=302]
+
+# bug 811787
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?foundation/annualreport/2011(.*)$ /b/$1foundation/annualreport/2011$2 [PT]
+
+# bug 816249
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?privacy(/?)$ /b/$1privacy$2 [PT]
+
+# bug 815731 /ITU/
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?ITU(.*)$ /b/$1ITU$2 [PT]
+
+# bug 821838
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?tabzilla/(.*)$ /b/$1tabzilla/$2 [PT]
+
+# bug 821937
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?m/privacy.html$ /b/$1m/privacy.html [PT]
+
+# bug 823302
+RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/new-b(.*)$ /b/$1firefox/new-b$2 [PT]
0  etc/httpd/stage.conf
View
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.