Why am I unable to login after converting to www?

So I originally designed the site without the www. I’ve since realized that it’s going to cause more problems than necessary.

I created a rewrite rule that converts to www.

Read More

I then changed the domain in wp-config

define( 'DOMAIN_CURRENT_SITE', 'openeye.net' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
define('WP_HOME','http://www.openeye.net');
define('WP_SITEURL','http://www.openeye.net');
define('WP_MEMORY_LIMIT', '96M');

I’m now not able to edit pages or access wp-admin. What would cause that?

Related posts

Leave a Reply

2 comments

  1. You don’t need a rewrite rule in .htaccess to add www back in. Remove the rewrite rule, remove all the defines in wp-config and try to login. If that doesn’t work, delete permalinks in .htaccess to force them back to default.

    After you’re in, add the www in Dashboard>>Settings and save. Then reset permalinks.

  2. Are you able to access your DB? Check that your site url is correct in the wp_options table.

    From WordPress’s perspective, what you’ve actually done is “moved” your web site to a completely different URL (just as if you were to forklift your site from “mydomain.com” to “anothersite.net”. This can often cause login issues, but if you follow the instructions in these two articles I think you’ll be just fine.