?
avatar zobeco
zobeco
7 May 2019

Steps to reproduce the issue

As of now I use this rule (in .htaccess of example.com) to redirect HTTPS/HTTP example.com to newdomain.com:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://newdomain.com/$1 [R=301,L]
And from searching, I found that the following rule redirects HTTPS to HTTP:

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}
How do I combine these, so examle of My website is - - http://www.zobeco.com/ redirects to https://www.zobeco.com/ and then, http://example.com redirects to http://newdomain.com.

I cannot explain why I am not asking for something like this - - HTTPS/ redirects to http://newdomain.com. In short, I have searched and asked, and the rules suggested aren't working, probably coz I am using a self-signed cert, and the same cert for the two domains (example.com is an addon domain, and newdomain.com is the main domain). Please advise, if that makes sense.

Expected result

Actual result

System information (as much as possible)

Additional comments

avatar zobeco zobeco - open - 7 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 May 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 May 2019

Please ask on Forum

avatar franz-wohlkoenig franz-wohlkoenig - change - 7 May 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-05-07 09:59:24
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig franz-wohlkoenig - close - 7 May 2019

Add a Comment

Login with GitHub to post a comment