?
avatar Jackynautiyal
Jackynautiyal
29 Dec 2018

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 - - https://www.delightgirls.com/ redirects to https://delightgirls.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.

avatar Jackynautiyal Jackynautiyal - open - 29 Dec 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Dec 2018
avatar Jackynautiyal Jackynautiyal - change - 29 Dec 2018
The description was changed
avatar Jackynautiyal Jackynautiyal - edited - 29 Dec 2018
avatar Bakual Bakual - change - 29 Dec 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-12-29 08:51:27
Closed_By Bakual
avatar Bakual
Bakual - comment - 29 Dec 2018

This is the issue tracker for Joomla code. This is not a support forum.
Since your question isn't even related to Joomla but a server configuration question I'd suggest to use stackexchange for your research, eg https://serverfault.com/.

avatar Bakual Bakual - close - 29 Dec 2018

Add a Comment

Login with GitHub to post a comment