Closed Bug 772429 Opened 13 years ago Closed 13 years ago

Setup /b redirects for new products/projects and whatsnew pages

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sgarrity, Assigned: cturra)

References

Details

Two new bedrock pages: http://www-dev.allizom.org/b/en-US/products http://www-dev.allizom.org/b/en-US/projects/mozilla-based Both need the redirect to hide the /b as with all bedrock pages.
Assignee: server-ops-webops → cturra
rewrite applied to www-dev as requested. RewriteRule ^/en-US/projects/mozilla-based(/?)$ /b/en-US/projects/mozilla-based$1 [PT] RewriteRule ^/en-US/products(/?)$ /b/en-US/products$1 [PT] RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?products(.*)$ /en-US/products$2 [L,R=302] please give them a test and let me know if anything is not redirecting as expected. once these are ready for stage/prod, go ahead and open new bugs to track them.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Blocks: 772942
Oops, mistake. RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?products(.*)$ /en-US/products$2 [L,R=302] should actually be RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?products(/?)$ /en-US/products$2 [L,R=302]
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
:rik good catch! i have updated the rewriterule in www-dev with the correct rule :)
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
qa-verified http://www-dev.allizom.org/b/en-US/products/ with and without the trailing slash http://www-dev.allizom.org/b/en-US/projects/mozilla-based/ with and without the trailing slash
Another rule to push, reopening. The crazy part is to match any Firefox version. RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox(/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?:[a|b]?)(?:\d*)(?:pre)?(?:\d)?))?/whatsnew(/?)$ /b/$1firefox$2/whatsnew$3 [PT]
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: Setup /b redirects for new products/projects pages. → Setup /b redirects for new products/projects and whatsnew pages
:rik this rule has been added to www-dev and pushed.
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.