301 HTTPS to HTTPS

I just changed servers and domains and want to set things up right with SSL.

I added ssl to newsite.com.

I did a 301 redirect from http://newsite.com to https://newsite.com.

I brought over http://oldsite.com and did a 301 to https://newsite.com. No problem.

Then I was getting an unsecured error on https://oldsite.com so I added ssl cert. Now that doesn't 301, it shows oldsite homepage.

How do I now do a 301 from https://oldsite.com to https://newsite.com?

Virtualhost 301 for oldsite.com:
Redirect permanent / https://newsite.com/

2 Replies

Did you add the Redirect to both :80 and :443 vhosts? What are the domains?

It was the :443 host. Totally overlooked that. Thanks!!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct