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

  • Home
  • SEARCH
  • 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 8906759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:44:14+00:00 2026-06-15T02:44:14+00:00

Basically my question is exactly this: redirecting www.subdomain.example.com to subdomain.example.com We give all of

  • 0

Basically my question is exactly this: redirecting http://www.subdomain.example.com to subdomain.example.com

We give all of our users a myusername.ourdomain.com link, the issue is when someone attempts to visit www.myusername.ourdomain.com our wildcard ssl gets broken and often the server will throw an error.

So the answer in the link I provided shows how to redirect a single www.apachedefined.mydomain.com I’m wondering how to use the same logic to do www.thiscanbeanything.mydomain.com.

Any help is greatly appreciated.

  • 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-15T02:44:15+00:00Added an answer on June 15, 2026 at 2:44 am

    Try adding these rules to the very top of the htaccess file in your document root for the www.*.mydomain.com vhosts:

    RewriteEngine On
    RewriteCond %{HTTPS} on
    RewriteCond %{HTTP_HOST} ^www\.([^.]+)\.mydomain\.com$ [NC]
    RewriteRule ^(.*)$ https://%1.mydomain.com/$1 [L,R=301]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today I stumbled upon this thread: http://www.mathworks.com/matlabcentral/newsreader/view_thread/112560 The question is basically how to make
Basically my question is the exact same one as this: Simple client/server, TCP/IP encrypting
This is basically the same question as Click items in select box, and then
Basically this is a question how to access local scope handler. I trying to
This question is exactly like this question: How to get MAC address of your
First, I know this question doesn't exactly belong here, but I'll explain later why
I don't know exactly how to phrase this question, but I have 3 column
Basically the same as this question: How to make an infinitely long scroll view
My question is almost exactly similar to this one . However , I'm not
I don't know where to ask this question or how to ask. Basically what

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.