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 7418727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:56:15+00:00 2026-05-29T07:56:15+00:00

I’m working on an Javascript app that I am going make viewable in Facebook.

  • 0

I’m working on an Javascript app that I am going make viewable in Facebook. Facebook requires I set up a special directory on my server which will serve the relevant PHP and Javascript code. Mine is called /canvas.

They also require that the connection be made using https. Okay, fine, so I’m looking at purchasing an SSL certificate.

I use the following code in my .htaccess file so that people don’t have to type in “WWW” in order to reach my domain:

RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

So I assume that the URL I want to send Facebook to is https://mydomain.com/canvas.

But I’m a little confused, because it seems when buying an SSL certificate, I need to specify a subdomain.

Is there a way to specify it so that “mydomain.com” without the “www” is where the SSL certificate is applied to?

Or is that not desirable? Should I set aside a special subdomain for secure transactions? Something like https://secure.mydomain.com?

I’ve never worked with SSL certificates before, so please answer on a level a newbie can understand.

  • 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-05-29T07:56:16+00:00Added an answer on May 29, 2026 at 7:56 am

    The most important point is that you need the certificate to match the host name requested by the user (even after redirection). To be able to serve both www.example.com and example.com, you’ll need a certificate that has both Subject Alternative Name (SAN) entries.

    You don’t have to specify a sub-domain, but it depends on what the CA has issued for you. Some will quite happily issue a certificate with the two SAN entries (with and without www), in some cases without additional fee.

    If you want to serve everything over https://example.com, it’s fine, but if your cert doesn’t have a SAN for www.example.com, initial connections to https://www.example.com (before the redirection) will cause a certificate error on the client side. Hence, it’s useful to have both.

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

Sidebar

Related Questions

I used javascript for loading a picture on my website depending on which small
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the

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.