Dealing with Common Errors

Occasionally, you might enter a configuration setting incorrectly or change your mind about the kind of network you require. If you installed WordPress, enabled the network, and then want to move it to a new location, you will encounter errors when changing the URL. The proper method is to move WordPress first, disable the network if you installed it, and then enable the network at the new location.

To change from subdomains to subfolders or vice versa, follow these steps:

  1. Delete the extra sites, if any were created.
  2. Edit wp-config.php , changing the value of define( ‘SUBDOMAIN_INSTALL’, true ); to define( ‘SUBDOMAIN_INSTALL’, false );

    To switch from subdomains to subdirectories, change false to true.

  3. Save the wp-config.php file and upload it to your Web site.
  4. Visit the Dashboard of WordPress and choose SettingsimagePermalink and click the Save Changes button.

    This saves and resets your permalink structure settings and flushes the internal rewrite rules, which are slightly different in subdomains than they are in subdirectories.

image This process can't be done if you want to keep extra sites.

Get WordPress® All-in-One For Dummies® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.