Book Image

WordPress 4.0 Site Blueprints

Book Image

WordPress 4.0 Site Blueprints

Overview of this book

Table of Contents (17 chapters)
WordPress 4.0 Site Blueprints Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Making your WordPress site live


Once you have all your content in place, have installed and configured any plugins you want to use, and are happy with your widgets and with any customizations you've made to the design, it's time to go live.

If you aren't running your old site on the server still and didn't install WordPress in a subdirectory, this is very simple. Perform these steps:

  1. Go to Settings | Reading.

  2. Uncheck the Search Engine Visibility checkbox.

That's it! Search engines can now find your site. You'll need to do a bit more to publicize it, but it's now public. Enjoy!

However, if you still have your static site running, there's a bit more to do:

  1. In your FTP client or in File Manager in cPanel, find the folder where the WordPress files are located and find two files—index.php and .htaccess. If you haven't made any changes to permalinks, you won't have an .htaccess file, so just work with index.php.

  2. Copy the two files (or one if you don't have .htaccess) to the next directory up, that is, public_html.

  3. Open the copy in public_html and find the line that reads as follows:

    require ('./wp-blog-header.php')
  4. Change it to this:

    require ('./XXX/wp-blog-header.php'),

    Here, XXX is the name of your subdirectory.

  5. Save the file.

  6. Back in the WordPress admin, go to Settings | General.

  7. Edit the Site Address and WordPress Address fields so that they read as follows, where site.com is your domain and folder is the name of your subfolder where WordPress is stored. Change them to the following, making sure you spell everything correctly to avoid redirect loops:

    • WordPress address (URL): http://site.com/folder

    • Site Address (URL): http://site.com

  8. Click on the Save Changes button.

  9. Back in your FTP client, delete all the files from your static site. If you want to back them up, copy them to your PC, but make sure they're all gone from your server to avoid any conflicts.

  10. Now visit your site. You'll find that it uses your main domain name and not the subdirectory.