I have a Wordpress installation which I wish to redirect from http://dev.example.com to https://example.com

I can get an unstyled page like the below; the browser balks at loading HTTP content for an HTTPS page.A CSS-less screenshot.

Since I began trying the migration, I have never succeeded in loading /wp-admin: it seems to run into a redirect loop. Commenting out Apache configuration files' RewriteRules did not make any difference I can tell.

How can I tell Wordpress to serve up files the obvious way when someone tries to log in to the admin interface?

I'd ideally like command line MySQL to fix it.

  • Did you change address in Wordpress admin panel? – user1700494 Feb 4 '16 at 13:14

Usually this fix for me,

add these lines into your wp-config.php:


where both entries contain your new site address.

Restart webserver

  • Thank you; I had tried that while composing my response. The homepage source attempts to load both HTTP and HTTPS URLs. (I can post the source for an HTTP load of the page if that would help; I was trying to be courteous and not post links that didn't need to be posted, which may or may not have been the right choice on my side. – Christos Hayward Feb 4 '16 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.