0

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.

1
  • Did you change address in Wordpress admin panel? Feb 4, 2016 at 13:14

1 Answer 1

2

Usually this fix for me,

add these lines into your wp-config.php:

define('WP_HOME','https://example.com');
define('WP_SITEURL','https://example.com');

where both entries contain your new site address.

Restart webserver

1
  • 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. Feb 4, 2016 at 13:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .