官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 黑龙江省| 深州市| 福鼎市| 建始县| 澳门| 江源县| 张掖市| 闻喜县| 大名县| 山东| 徐水县| 根河市| 明溪县| 新丰县| 江北区| 宁乡县| 五莲县| 堆龙德庆县| 亳州市| 承德市| 韩城市| 陆河县| 清苑县| 泌阳县| 河津市| 蒙阴县| 拉萨市| 桂林市| 大同市| 县级市| 泰顺县| 沾益县| 勐海县| 静乐县| 山东省| 启东市| 资阳市| 河曲县| 东方市| 新和县| 集贤县|