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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:07:41+00:00 2026-06-15T03:07:41+00:00

I have recently moved my site from one VPS to another. Everything is done

  • 0

I have recently moved my site from one VPS to another. Everything is done right and working fine except one problem of ssl.

My site uses ssl. (using rapidssl certificate)

I followed the instructions from here to move my certificates from one server to another.
http://www.sslshopper.com/apache-server-ssl-installation-instructions.html

The problem I am facing is very strange to me. In HTTPS mode, My site works fine with the like url http://stackoverflow.com, https://stackoverflow.com however it does not work with https://www.stackoverflow.com (notice www).

The problem is strange to me because it does work on old server.

Thanks in advance.
Pras

Here are my virtual hosts

<VirtualHost *:80>
ServerAdmin webmaster@@localhost
DocumentRoot /var/www/webroot/
ServerName stackoverflow.com
ServerAlias www.stackoverflow.com
<Directory //var/www/webroot/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost ***.***.***.***:443>
    ServerAdmin webmaster@localhost
    ServerName stackoverflow.com
    ServerAlias www.stackoverflow.com

    DocumentRoot /var/www/webroot/
    <Directory /var/www/webroot/>
            Options -Indexes
            AllowOverride All
            Order allow,deny
            allow from all
    </Directory>
    SSLEngine on
    SSLCertificateFile    /etc/apache2/ssl/thirdparty.crt
    SSLCertificateKeyFile /etc/apache2/ssl/thirdparty.key
    SSLCACertificateFile  /etc/apache2/ssl/thirdpartyssl.ca
    BrowserMatch "MSIE [2-6]" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
    BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>
  • 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-15T03:07:43+00:00Added an answer on June 15, 2026 at 3:07 am

    I found the solution.

    First of all the problamatic url pattern was not working on the old server too. This has been confirmed by certificate guys.

    So, I decide to forward all the “https://www.stackoverflow.com” url requests to https://stackoverflow.com. To do this, I have added few .htaccess rules:

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

    These rules are generic and can work with all websites.

    Hope this will save the time of others.

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

Sidebar

Related Questions

We have recently moved some data from an SQL Database instance to another one
I have recently moved my blog from one serever to another. I am now
I have recently moved my RoR app on the Heroku platform, and almost everything
I have recently moved my app from a linux machine to windows, and I
We have recently moved from VS 2008 to VS 2010. With that my applications
I'm working on a site that was recently moved. After the move all the
I'm working with a client and we just recently moved their website from Godaddy
I have recently moved my VisualSVN Server 2.5.2 to a new machine(from Windows Server
We recently moved from Windows XP to Windows 7. We found that one part
I've recently moved a project I'm working on from .NET 3.5 to .NET 4.

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.