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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:50:28+00:00 2026-06-14T14:50:28+00:00

The desired URL is https://www.mysite.com I’d like to redirect all the followng URLs to

  • 0

The desired URL is https://www.mysite.com

I’d like to redirect all the followng URLs to be like the above URL.

Bad URLs:

https://mysite.com
http://www.mysite.com
http://mysite.com
mysite.com

And if anything is trailing, like http://www.mysite.com/photo/1 for the url to be redirected with the same path: https://www.mysite.com/photo/1

Why!
Cause i’ve installed SSL Certificate

I’ve used .htaccess with that code

RewriteEngine On
RewriteCond %{HTTPS} !^on$
RewriteRule (.*) https://www.mysite.com/$1 [R,L]

but it always redirect all to https://mysite.com while i need it exactly https://www.mysite.com

so any help ~ thanks

  • 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-14T14:50:31+00:00Added an answer on June 14, 2026 at 2:50 pm

    Try this

    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} !on
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to set up a redirect so that when user requests: http://www.fareham.ac.uk/chequers
I have a URL of form http://www.example.com?foo=one&foo=two I want to get an array of
so my url is currently: http://www.mywebsite.com/search.php?keyword=stack+overflow I'm wanting to have it accessible as: http://www.mywebsite.com/?s=stack+overflow
I have the following scenario: URL u1 = new URL(http://www.yahoo.com/); URL u2 = new
For example Input <url wiki=https://wiki.archlinux.org/index.php/Main_Page forums=https://bbs.archlinux.org/> Desired output <url wiki=https://wiki.archlinux.org/index.php/Main_Page forums=https://bbs.archlinux.org/> Here's a sample
I'm trying to use the jQuery.url plugin ( http://projects.allmarkedup.com/jquery_url_parser/ ) to grab a specific
I just wanted that when this is inserted in the URL: http://website.com/pelicula/0221889/ http://website.com/pelicula/0221889/posters/ It
My problem is best described with this screencast I recorded: http://www.youtube.com/watch?v=aI-p_jqzOdU I'm using the
I'm having problems using fopen in php. If I open the desired URL by
I have a web page, that redirects to the desired destination url using: <meta

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.