How to enable blank background login after Wordpress moves all over the site

Source: Internet
Author: User
Tags wordpress migration

A small blog I made with wordpress has been stored on a foreign host. I feel that the access speed is too slow, so I plan to move to a Chinese host. As a result, some problems occurred during the migration process. After a whole day, I found a solution. So I sorted it out a little bit. If a webmaster friend encountered the same problem, I could help a little bit.

Migration Process: There are many tutorials on wordpress's whole-site migration on the Internet. Some Articles have already been very clear. To clarify the problem, I will briefly explain the migration steps:

1. Download the entire wordpress website file to your local device.

2. Back up the database and download it to your local device.

3. Upload the modified whole site file to the new host.

4. Import the backup database.

5, modify the database information in the wp-config.php under the root directory, user name, password, server address and so on.

  The following are the problems and solutions I encountered during the migration process.

Problem 1: the backend cannot be accessed, and the two or three plug-ins cannot be accessed again.

After the above migration steps, the home page of the website can be accessed normally, but the background cannot be logged in. It is blank and there is no prompt. The problem lies in the plug-in. The solution on the network is: through FTP, rename the plugins folder and you can log on to the background normally. After logging on to the background, modify the plugins folder and then activate the plug-in the installed plug-in.

The problem I encountered was: After activating two or three plug-ins, I installed another one, and the background was blank again. After renaming the plug-in, I could access the plug-in normally, but no more plug-ins can be installed. Wordpress originally relies on these plug-ins, and it is impossible to use these plug-ins.

After a long time, I found the cause. It turns out that these plug-ins occupy too much memory, resulting in insufficient memory.

Solution: increase the available wordpress memory.

Edit this file wp-config.php

Find define ('db _ name', 'winestable ');

Add: define ('wp _ MEMORY_LIMIT ', '96m') before it ');

Here, 96 M can be written larger, for example, 256 M or M, depending on your host restrictions. After modification, you can access the front-end and back-end normally.

Problem 2: The homepage is displayed normally, and a 404 error occurs on the topic page and Article Page.

When you open the website, the homepage is displayed normally, but the topic page and Article Page cannot be displayed, and the prompt is 404. The reason for this problem is that the previous wordpress has set pseudo-static, and the fixed link uses a custom structure. After the migration, the system does not reset the pseudo-static state, so it cannot be accessed.

Solution: You don't need to set any more. You just need to log on to the background, set, and fix the link, and save the changes. Of course, the host also needs to set pseudo-static rules, space pseudo-static rules, and space providers generally provide. I am using a communication host. The. htaccess file rules are as follows:

# Enable RewriteEngine Mode

RewriteEngine On

# If the program is placed in the root directory

RewriteBase

# Do not modify Rewrite system rules

RewriteCond % {QUERY_STRING} ^ (. *) $

RewriteRule implements topic-(.20.20..html $ portal. php? Mod = topic & topic = $1 & % 1

RewriteCond % {QUERY_STRING} ^ (. *) $

RewriteRule used forum-(w00000000-(%0-9000000000000.html $ forum. php? Mod = forumdisplay & fid = $1 & page = $2 & % 1

RewriteCond % {QUERY_STRING} ^ (. *) $

RewriteRule implements thread-(%0-9%%%%%%-(%0-9%%%%%%%%%%%.html $ forum. php? Mod = viewthread & tid = $1 & extra = page % 3D $3 & page = $2 & % 1

RewriteCond % {QUERY_STRING} ^ (. *) $

RewriteRule into group-(%0-9%%%%%-(%0-9%%%%%%.html $ forum. php? Mod = group & fid = $1 & page = $2 & % 1

RewriteCond % {QUERY_STRING} ^ (. *) $

RewriteRule ^ space-(username | uid316-(.20.0000.html $ home. php? Mod = space & $1 = $2 & % 1

RewriteCond % {QUERY_STRING} ^ (. *) $

RewriteRule ^ archiver/(fid | tid316-(%0-9%%%%%.html $ archiver/index. php? Action = $1 & value = $2 & % 1

The above are two problems I encountered during the wordpress migration process. I hope it will be helpful to you, especially when the plug-in background login blank is enabled. Here I will remind you of wordpress migration.

Friends, don't worry about deleting the data on the original host before moving. If an error occurs, you can come back and try again.

This article is original from the wine table Blog. For more information, see http://www.winestable.com.

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.