WordPress Whole Station Move Summary _php tutorial

Source: Internet
Author: User
Tags vps wordpress blog
Last year is cheap, and not ready to write blog, so spent hundreds of yuan to buy a domestic space (domain name has been filed). After the purchase, put a WordPress blog, nothing to write blog, but never take the time to write, the quality of the article is not pursued. In the beginning, because it is not often written, the blog can not be accessed from time to time to accept, pseudo-static can not be accepted, can not interact with the social network is acceptable. In short, as long as the price is cheap, everything can be accepted. But in the first half of 2013 began to write articles, in the visit to the site, every now and then often the situation is not open, sometimes for several days, simply unbearable.

So when the space is due to expire, decided to change space, from the Internet search, also on the Taobao. This thought to find a domestic space is very simple, after all, the domain name has been filed. But after two days of understanding, I found that the right few.

mainly involves the domain name access question. Change the space, also want to change the domain name record access provider, replace the access provider , need to know the domain name record password. The password forgot, the mobile phone has changed, and the mailbox fills the former enterprise mailbox.

So it is impossible to retrieve the password, password can not be found, the access provider cannot change, I do not want to use the original space, so also took into account the space in Hong Kong, and spent a little time to understand the cost of Hong Kong space, and finally decided to choose Hong Kong VPS, which is now 1100w.com used Vps,linux +apache+php+mysql.

After purchasing the VPS, start back up WordPress, the program good backup, direct FTP dragged down on it can be. Then there is the database, because I used virtual space, and when I use the Back Up Database feature in the background, the backup database files always have problems in the restore. So I contacted the customer service, directly said is to MySQL database files. After a period of time, the customer service package, and put in the virtual space. Because I am now using a Linux host, Windows files are not available under Linux.

So, I built the php+apache+mysql locally and backed up the files locally successfully. The database is then restored successfully through phpMyAdmin in the management background of Linux.

After the database recovery is successful, FTP uploads the original WordPress file. After uploading successfully, modify the following places:

1.wp-config.php files, modifying database connection information

< span="">(' db_name ', ' database name '< span="">< span="">(' Db_user ', ' Database user name '  < span="">  < span=""> ) (' Db_password ', ' Database password '< span="">< span="">(' db_host ', ' localhost ');

If you do not change the domain name, after modifying the wp-config.php, the site can be successfully accessed.

2. If the domain name is changed, the Wp_options table in the database needs to be modified. Modify the fields in the table SiteURL and home to the current domain name.

After the construction of WordPress, the first task is to www.1100w.com/?p=613 this similar connection to a more conducive to SEO connection.

such as: Http://www.1100w.com/jquery plug-in to achieve page scoring function/

But the previous page needs to achieve 301 jump, because after all, some articles still some traffic, can not give up.

So I searched the web from the next WordPress 301 Redirect, also in the local tried a few redirection plug-ins, found the setup is very troublesome, if according to the official description, need a piece of add, it is impossible, because the article more.

Finally found a solution, and very simple. In the beginning, I entered the misunderstanding.

Apache+wordpress environment can support 301 redirect function very well, there is no need to install any plug-in, do not need to set the. htaccess file.

Solutions

We just need to choose or set up the connection we need in wordpress background "settings", "Fixed connection". WordPress Auto Support 301 Redirect (learned from the Web, the new version of WordPress support, but did not test that version after).

Description

I did not use this method at first because I built a local Windows 7+apache environment, after setting up a fixed connection, I found that the Web page could not open, it was not thought because the rewrite module is not open. So take a detour.

The solution is to open the httpd.conf file, find the following sentence, the previous # number will be removed.

#LoadModule Rewrite_module modules/mod_rewrite.so.

http://www.bkjia.com/PHPjc/440199.html www.bkjia.com true http://www.bkjia.com/PHPjc/440199.html techarticle last year is cheap, and not ready to write blog, so spent hundreds of yuan to buy a domestic space (domain name has been filed). After the purchase, put a WordPress blog, nothing ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.