Closed Bug 793830 Opened 12 years ago Closed 12 years ago

Update Redirect For http://www.mozilla.org/contact/

Categories

(www.mozilla.org :: Legacy PHP system, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bensternthal, Unassigned)

References

Details

(Whiteboard: r=109562)

Attachments

(1 file, 1 obsolete file)

Assignee: server-ops-webops → nobody
Component: Server Operations: Web Operations → Legacy PHP system
Product: mozilla.org → www.mozilla.org
QA Contact: cshields
Attached patch Patch file (obsolete) — Splinter Review
Attachment #666733 - Flags: review?(mkelly)
Comment on attachment 666733 [details] [diff] [review]
Patch file

Review of attachment 666733 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good except my nits.

::: .htaccess
@@ +1536,4 @@
>  #
>  # These matched files have permanently moved and will return a 301 status.
>  #
> +RedirectMatch permanent ^/contact/ http://www.mozilla.org/about/contact.html

You should remove the "http://www.mozilla.org" from the redirect URL so that this will work across the dev and staging servers as well as production.

@@ +1536,5 @@
>  #
>  # These matched files have permanently moved and will return a 301 status.
>  #
> +RedirectMatch permanent ^/contact/ http://www.mozilla.org/about/contact.html
> +RedirectMatch permanent ^/developer/ https://developer.mozilla.org/docs/Developer_Guide

Aha, now I see why the other diff had this in it. Please remove. :)
Attachment #666733 - Flags: review?(mkelly) → review+
Re-doing the patch.

1. Added the ?
2. Sep patch for /contact
3. Removed domain
3. As per discussion yesterday removing the dirs that are being completely redirected
Attachment #666733 - Attachment is obsolete: true
Attachment #667075 - Flags: review?(mkelly)
Comment on attachment 667075 [details] [diff] [review]
Added redirect, removed directory

Review of attachment 667075 [details] [diff] [review]:
-----------------------------------------------------------------

::: .htaccess
@@ +1536,4 @@
>  #
>  # These matched files have permanently moved and will return a 301 status.
>  #
> +RedirectMatch permanent ^/contact/? /about/contact.html

If you're removing the htaccess you should modify this regex to accept the old URLs as well (cool URLs don't change!).
Attachment #667075 - Flags: review?(mkelly) → review-
The old htaccess had the following 3 entries:

-Redirect permanent /contact/moz-office-map.html http://www.mozilla.org/contact/
-Redirect permanent /contact/moz-office-map.gif http://www.mozilla.org/contact/
-Redirect permanent /contact/moz-office-map.png http://www.mozilla.org/contact/

So the blanket redirect covers these. I think based on that what I did was OK.
Attachment #667075 - Flags: review- → review+
Of course, these are partial matches. My mistake!
Whiteboard: r=109562
Attachment #667075 - Flags: review+
Depends on: 797577
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: