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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:56:04+00:00 2026-06-02T05:56:04+00:00

I have two URLs pointing to one app and I would like them all

  • 0

I have two URLs pointing to one app and I would like them all to be redirected to the SSL address with www (i.e https://www.example1.com)

I currently have the following in my .htaccess file:

RewriteCond %{HTTP_HOST} ^example1.com [nc,or]
RewriteCond %{HTTP_HOST} ^www.example1.com [nc,or]  # Causes problems
RewriteCond %{HTTP_HOST} ^example2.com [nc,or]
RewriteCond %{HTTP_HOST} ^www.example2.com [nc]     # Causes problems
RewriteRule ^(.*) https://www.example1.com$1 [R=301,nc]

The conditions for www URLs don’t seem to redirect properly and the browsers complain as much.

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-02T05:56:07+00:00Added an answer on June 2, 2026 at 5:56 am

    In most Apache SSL setups, your best bet is redirecting Apache traffic on a port other than 443 (SSL) to the SSL URL:

    RewriteCond %{SERVER_PORT} !443
    RewriteRule ^(.*) https://www.example1.com$1 [R=301,NC]
    

    or, you can check for HTTPS this way:

    RewriteCond %{HTTPS} off
    RewriteRule ^(.*) https://www.example1.com$1 [R=301,NC]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to have one route that gives the option of two urls but
I have one def function that I would like to use to handle two
Having some issues getting this MPMoviePlayerViewController to work. I have two sample URLs pointing
I have two functions, one that creates a table like so: function return_formatted_results(result_no,addy,title,own_comment) {
I would like a batch file to launch two separate programs then have the
I have two URLs. This one works: equipo.php?equipo=sk+gaming&page=2&ipp=24 This one does not: equipo/sk+gaming.html?page=2&ipp=24 equipo/sk+gaming.html
I have two html img objects with different src urls. I'd like to combine
I have two URLs: http://s140452.gridserver.com/view-pullsheet/ https://s140452.gridserver.com/locations/ When browsing through any properties on the locations
Evening I have two tables: urls & places. To simplify, the data is like
I need a litte bit help. I have the following two URLS: WSDL: https://amsel.dpwn.net/abholportal/gw/lp/schema/1.0/var3ws.wsdl

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.