Solutions to wordpress page deformation and link failure problems

Source: Internet
Author: User
In the past few days, some bloggers and friends and I have said that the link to the second-level page is invalid, and an article just published will make my webpage distorted. I have integrated the online approach, I summarized my first

In the past few days, some bloggers and friends and I have said that the link to the second-level page is invalid, and an article just published will make my webpage distorted. I have integrated the online approach, I have summarized some of my solutions.

1. the second-level page link is invalid.

The reason is that I put index in the fixed link. php is removed, and my blog does not seem to support such modification on a windows Server, resulting in a 404 error. on the Internet, I found the solution:

1. create a new notepad file, write the following code, and save it. rename it 404.phpin the same format as .txt;

$ Qs = $ _ SERVER ['query _ string'];
$ _ SERVER ['request _ URI '] = substr ($ qs, strpos ($ qs,': 80') + 3 );
$ _ SERVER ['path _ info'] = $ _ SERVER ['request _ URI '];
Include ('index. php');?>

2. in the management control panel of the host server, set the 404 custom error to 404.php;

3. after completing the above steps, you can reset the permanent link form you want to use in the WordPress background-settings-Permalinks.

With the above three simple settings, your Windows host can be the same as the Linux host, and no index will appear when you set a fixed link. php. but sometimes I don't know why, even when the network speed is unstable, this still happens. o (too many) o Alas, maybe it's a server problem... Then, this method is used:

1. check whether the. htaccess file exists in the root directory of the website (that is, the root directory of the WordPress program;

2. if No. create a file named x. and then upload the file to the WordPress root directory through the FTP tool. change htaccess. htaccess and set the file permission to 644 or higher, so that the file supports write operations.

3. in the FTP software, open the. htaccess file and edit it. Copy the following code to the file:


RewriteEngine On
RewriteBase/
RewriteCond % {REQUEST_FILENAME }! -F
RewriteCond % {REQUEST_FILENAME }! -D
RewriteRule./index. php [L]

After the copy is complete, save the. htaccess file so that you can set your fixed link structure at will.

2. wordpress webpage deformation

Careless people can easily make this mistake. they can COPY a piece of text directly from the Internet or from Word documents. some texts are styles, especially block-level element DIV, it is easy to cause webpage deformation. Therefore, you must remember that there must be methods for copying. In the HTML editor, remove all the labels. in the visualized operation, select all the articles and click the Remove format in the menu editing bar. This is my solution.

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.