Digital Team
About UsEdit in Gitbook
  • Welcome
  • Getting started
    • Life on the Digital team
      • Meetings
      • Communication
      • Software engineering working agreement
    • Contributing to Boston.gov
    • Using GitBook
  • Standards & best practices
    • Digital Team Release Notes
    • Working with Partners
    • Accessibility at COB
      • Developers
      • Content Editors
        • How to guide
      • Resources
      • Working with Iterators
    • Analytics and Metrics
    • Code of Conduct
    • General
    • Code reviews
    • Project Management
    • Git / GitHub
      • Contacts at Github
      • Git Command Tips
      • GitHub Service Accounts
    • Code quality
      • Automated tests & static analysis
      • Code comments
      • Style guides
        • Drupal/PHP
          • D8 Dependency Injection (DI)
        • React/TypeScript
    • Technical documentation
    • Hosting and monitoring
    • Deployment
  • Guides
    • Technology stack and technologies used
      • Web applications
    • Drupal - boston.gov
      • Custom Development & Configuration
        • On Demand Instances
          • Acquia Environment setup checklist
        • Continuous Deployment Process
        • Developer Onboarding
          • Step 1: Local Dev Environments
          • Step 2: Version control
          • Step 3: Introduction to Drupal
          • (to be sorted)
            • Development environment
              • PHP CodeSniffer
              • VSCode IDE Setup
              • AWS for Developers
              • Using Windows
            • Installation instructions
              • Typical build output
              • Lando 101
              • Verify Installation
                • Local Patterns installation
              • Windows install
              • PhpStorm settings configurations
          • Step 4: Site Building in Drupal 8
        • Site Development Notes
          • Git Best Practices - Drupal
          • Drupal Cache
          • Drupal Config
          • Custom Modules
            • Custom Themes
              • Front-end Theme (bos_theme)
                • Site Breadcrumbs
              • Back-end Theme (bos_admin)
            • Adding Templates to Custom Modules
            • Custom Content Types
              • D7 -> D8 Conversion
              • Content Editor UX
                • Content Moderation
              • In-page Navigation Menu
            • Custom Paragraphs
              • D7 -> D8 Conversion
            • Custom Taxonomies
            • WebApps
          • Drupal UX-specific
            • Image Styles & UX
            • Example Content Pages
          • PHPStorm IDE
        • CKEditor
      • Drupal Apps/Content Types
        • Budget Website
        • Building Housing
          • BH Drupal Entities
          • BH Map Webpage
          • BH Property Webpage
            • BH Project Timeline
          • BH Salesforce Sync
            • Salesforce Contributed Module
        • Contact Form
        • Election results
        • Google reCAPTCHA
        • My Neighborhood Lookup
        • Metrolist
        • Metrolist (Drupal)
        • Project Tracker
          • Content Types (& Paragraphs)
          • Taxonomies
          • Views
          • Developer Notes
      • Drupal Features & Components
        • Single Sign On (SSO)
          • Drupal SAML Knowledgebase
          • SamlAuth
        • Maps on boston.gov
        • Charts on boston.gov
          • Quick Overview
          • Chart Data
          • Chart Configuration
          • Advanced Concepts and Techniques
          • Charts on boston.gov (legacy)
          • Useful Resources
      • Drupal micro-services (API end-points)
        • Integrating with Boston.gov
        • Assessing Forms Endpoint
        • Bos311 API
        • Cityscore
          • Knowledge Base
        • PDF Manager Module
        • PostMark Email Services
          • Postmark Knowledgebase
        • Upaknee Email List Services
        • Public Notices
        • Site Alerts
          • CodeRed Subscription
      • Drupal - Weekly Maintenance
      • Drupal - Periodic Maintenance
    • Digital Webapps
      • Libraries and Tools
        • Emotion
        • Storybook
        • Rollbar
      • Services
        • AWS-hosted Microservices
          • SQL Proxy API (DBConnector)
            • Developer Notes
          • PDFToolkit API (DB Connector)
            • Developer Notes
      • Webapps - Maintenance
      • Webapps
        • Boston Family Days
        • Property Tax Calculator
        • Access-Boston
          • Updating IAMDIR/Group Management/LDAP certificates
          • Node Server
          • Portal App Tile Configurations
          • Ownership of Concerns
          • Updating SAML Certificates
          • Applications/Services
            • Group Management
            • Confirm ID/ID Verification
            • Preferred Name
        • Sanitation Scheduling
        • Registry-Certs
          • Marriage Intention
      • DevOps
        • New service setup
          • Non-Monorepo Service Setup
        • Service Configuration
          • Editing a project’s configuration using Cyberduck
        • Managing AWS
          • Production Overview
          • AWS Bastion Access
          • Terraform
            • Updating the ECS cluster AMI
          • Restarting an ECS service
          • Encrypting service configuration for S3
          • Mounting AWS SFTP as a Drive (Mac)
        • Webapp Deployment
          • Deploy to AWS 2021
            • Deploy Tool (cob_ecrDeploy)
    • Fleet - Pattern Library
      • Patterns Library Architecture
      • Icon Library Architecture
      • Developers
        • Local Development for Drupal Developers
      • Patterns Library Maintenance
    • Legacy Website - cityofboston.gov
      • Animal Control
        • Dog Licenses
      • No Tow
        • Street Sweeping Reminders
        • Street Occupancy Alerts
        • Towing Alerts
        • Towing Search
        • Subscription Search
        • Proposed Restructure
          • Backend
        • Reillys Notes
      • Workers' Compensation Inquiry Form
      • Streetbook
      • Legacy Website - Maintenance
        • Animal Control Maintenance
        • Assessing Online (AOL) Maintenance
          • Knowledge-base
          • Disclosure Period
          • Annual PDF Initialization
          • Database Tables
        • No-Tow Maintenance
    • AgilePoint
      • AgilePoint: Adding Users
      • Migrating AGP Applications from one platform to another
    • The Hub - hub.boston.gov
      • The Hub - Maintenance
    • Maintenance
      • Updating SSL Certificates
    • Redirects
      • Redirecting from cityofboston.gov
      • URL redirects versus URL aliases - Drupal
      • DNS Redirects
    • Decommissioned Apps or Services
      • Archived Forms Information
      • CodeRed
      • Drupal 7
        • Deployment (2019)
          • Why do we peer-review pull-requests ?
      • Rentsmart
      • SnowStats
      • Ruby
    • Weglot translation
      • What to do in Weglot
      • What to do on the website or page
        • Softr
        • Drupal Powered Pages
        • Custom Pages
  • Projects
    • Project: Patterns Library Cleanup
      • Project: Refactoring Legacy CSS
        • Strategy
        • Regression Testing
        • Maintenance
    • Project: Upaknee
    • Project: Everbridge API + UI
    • Project: 311 CRM Upgrade
      • Project: City Worker Upgrade to City Worker 5
      • Project: Lagan 311 CRM upgrade to 15r4
    • Project: Fleet (Pattern Library Design System)
    • Project: Monorepo Decoupling
    • Inactive projects
      • Project: 311 (Salesforce Upgrade)
      • Project: Access Boston
        • General/Historical Documentation
          • Edit Config and Upload Icons
        • Processes
          • Process: Adding New Icon to Access Boston Website
          • Process: Non-icon Access Boston Feature or Bug Requests
          • Self-Service
      • Project: Alexa Skill
      • Project: Assessing Online
        • 2022 Notes
      • Project: Boards and commissions
      • Project: City Hall Appointment Scheduler
      • Project: CityScore
      • Project: Mobile Apps
      • Project: Permit Finder
      • Project: Public Notice Signage
      • Project: Registry Suite
        • Birth certificates
        • Marriage Certificates
        • Marriage Intention
        • Death Certificates
      • Project: Work With U.S. Digital Response Team
      • Project: TDM Points App
      • Project: Translation on boston.gov
  • External resources
    • Learning resources
    • Reference links
    • Applications and extensions
Powered by GitBook
On this page
  • Acquia Domain Management
  • Drupal Domain Redirect
  • DNS Changes

Was this helpful?

Export as PDF
  1. Guides
  2. Redirects

DNS Redirects

How we handle redirecting unused domains to their new homes

PreviousURL redirects versus URL aliases - DrupalNextDecommissioned Apps or Services

Last updated 3 years ago

Was this helpful?

We often get called upon to take old (sub)domains, such as data.cityofboston.gov or "vanity" domains like imagine.boston.gov and publicartsboston.com, and point them to new homes. Typically, but not always, these redirects are to pages on Boston.gov.

Making such a redirect is a multi-step process:

  1. Verify that the Acquia production environments' section contains an entry for the domain to be redirected, then

  2. Configure Drupal to handle the redirection using the module, then

  3. Change the CNAME DNS record at DNS Made Easy to point to www.boston.gov.

Acquia Domain Management

, and then navigate to the Production environment.

In the left hand menu, navigate to "Domain Management"

On the Domain Management page, you will see a list of Domains that the environment will accept internet traffic for. These domains will all effectively be considered aliases for www.boston.gov and will be redirected to the Drupal docroot for boston.gov. However, after the redirect the header will retain information on the orginal domain requested, and Drupal can use this to further redirect traffic on to the desired destination (as defined in the next section).

If the domain you are trying to redirect is not going to be matched by actual (or wildcard) entries already in the list of Domains on the page, then click the "Add Domain" button and add your domain and save. Nothing will happen until you complete the DNS Changes step below.

Drupal Domain Redirect

Login to content.boston.gov via , and then navigate to Configuration | Search and Metadata | URL redirects. From that Redirect page, click on the Domain redirects tab in the page submenu.

In the bottom half of this page, you will now see a list of subdomains / paths, and final destinations that are already configured. The "From domain" is a domain which will resolve from the list on the Acquia Domian Management page above (either exactly or via a wildcard). The "Sub path" can be any path on that domain/subdomain or "/*" to redirect the whole site. Finally, the "Destination" is the redirect target. If the user enters a url matching the from domain and sub path they will be redirected to the Destination.

You can see examples in the instructions in the top half of the page. Pay attention to the flexibility offered by using wildcards in the "sub path" field.

Redirects on this page take effect as soon as they are added or updated, provided the DNS is in place.

Care: Take care that the "rules" on the page are applied from to to bottom. If your redirect is not working properly, it could be because a rule with a wildcard condition is being met exists higher in the list than the rule you have added.

Tip: The destination does not have to be a page hosted by the boston.gov Drupal site, it can be a redirect to any valid URL.

You can expect new redirects to take effect immediately, as nothing is cached. If the redirect is not updating after you have changed it, then it could be: - because the users local cache is not refreshing (so try clearing that first), or - because the varnish cache is holding the page b/c the purgers may not acknowledge redirect changes as content changes and the pages may not be invalidated. (try clearing the varnish cache) - some other cache (e.g. Imperva) is holding the redirect. (this is much less common)

DNS Changes

Most domains or subdomains to be redirected which considered under this documentation are hosted on DNSMadeEasy and therefore use DNSMadeEasy nameservers. It is possible that domains are hosted on other services, such as GoDaddy. If you are unsure where the domain is hosted, start by contacting infrastructure who may be able to help with where the DNS records need to be altered.

All DNS changes have to be done through a Change Management request, though given their low risk they typically can be turned around same-day. Requests for changes to DNS also require a service desk/trackit ticket.

Contact Infrastructure to find out who the correct contact is for making DNS changes - at the time of writing Frank Skelton is usually responsible for making the changes in DNSMadeEasy.

Service Desk Trackit Ticket

Change Management Ticket

Send an (doitservicedesk@boston.gov), and cc the Infrastructure contact (Frank) in. The email should outline the subdomain you need to add/change and specify the record should be a CNAME target to www.boston.gov.

Create a new in the smartsheets system. Set yourself and the Infrastructure contact (Frank) as the Contact Persons. your manager as the Senior Approving Manager and Frank as a reviewer. For DNS changes it is acceptable to set the date to be today if you want the change to be immediate.

Domain Management
Domain Redirect
Login to Acquia
access boston
email to the DoIT service desk
Change Management ticket