Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WordPress 4.0 Site Blueprints (Second Edition)

You're reading from   WordPress 4.0 Site Blueprints (Second Edition) Create a variety of exciting sites for e-commerce, networking, video streaming, and more, using WordPress

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781784397968
Length 324 pages
Edition 1st Edition
Concepts
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Migrating a Static Site to WordPress 2. Creating a Social Media Site FREE CHAPTER 3. Creating a Network of Sites 4. Creating an E-commerce Site 5. Creating a Video Streaming Site 6. Creating a Review Site 7. Creating a Jobs Board 8. Creating a Team Communications Site 9. Creating a Gallery Site 10. Creating a Membership Site 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.
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime