O'Reilly logo

WordPress® All-in-One For Dummies® by Michael Torbert, Andrea Rennick, Kevin Palmer, Cory Miller, Lisa Sabin-Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required