Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9315531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:23:29+00:00 2026-06-19T02:23:29+00:00

is it possible to use single certificate in apache for two alias domain name

  • 0

is it possible to use single certificate in apache for two alias domain name using some kind of redirect using URL rewrite etc? like following. I want to redirect example.com to www.example.com

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$
RewriteCond %{SERVER_PORT} =443
RewriteRule ^ https://www.example.com%{REQUEST_URI} [L,R=301]

Problem is i have SSL certificate registered for www.example.com domain and i have CNAME example.com but i am getting SSL warning on example.com, can i use above trick to make it work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T02:23:30+00:00Added an answer on June 19, 2026 at 2:23 am

    You can have a certificate valid for multiple host names when it has multiple Subject Alternative Names or when it’s a wildcard certificate (or both).

    Wildcard certificates are not particularly useful for www.example.com and example.com because the dot isn’t part of the pattern, so *.example.com wouldn’t match example.com. Such a wildcard certificate would need an additional SAN for example.com anyway in this case.

    CAs have various commercial names for certificates with multiple SANs, and often charge extra for then.

    However, the www is considered by many a special case. Some CAs will issue a cert with SANs for www.example.com and example.com when you apply for www.example.com, without an extra fee.

    You could also use two distinct certificates but, unless you know all your clients support Server Name Indication (SNI), you would need a separate IP address for each.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use two meta:resourcekey in single control is it possible? for example
Is it possible for two or more ASP.NET MVC sites to use a single
I am using Boost asio 1.48. Is it possible to re-use a single boost::asio::io_service
I try to use single quotes as much as possible and I've noticed that
Is it possible to use a data template for a single item with no
Just wanted to know if is possible to use mod_rewrite on a single(or more
Possible Duplicate: When to Use Double or Single Quotes in JavaScript Are there differences
Is it possible use a MySQL query to perform this kind of check? If
Is it possible to use generic support with single table inheritance, and still be
Is it possible to use two or more data connections in Visual Studio and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.