Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add www redirection to non-www url #626

Open
OleksandrKryvobok opened this issue Mar 29, 2024 · 0 comments
Open

Add www redirection to non-www url #626

OleksandrKryvobok opened this issue Mar 29, 2024 · 0 comments
Labels

Comments

@OleksandrKryvobok
Copy link

Support Question

Question
Can you help, please? How I can create a redirect from www.example.com to example.com?
Because if I add a CNAME record in r53 that give me an error like this:

This site can’t provide a secure connection www.example.com uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH

Domain Manager Configuration


plugins:
  - serverless-dotenv-plugin
  - serverless-prune-plugin
  - serverless-domain-manager
#  - serverless-plugin-warmup

custom:
  prune:
    automatic: true
    number: 2
  domains:
    prod: example.com
    dev: dev.example.com
  customDomain:
    domainName: ${self:custom.domains.${opt:stage, 'dev'}}
    basePath: ""
    stage: ${opt:stage, 'dev'}
    certificateName: 'example.com'
    createRoute53Record: true
    endpointType: 'edge'
    securityPolicy: tls_1_2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant