How to use navcat to modify all wordpress domain names

Source: Internet
Author: User
Tags wordpress domain
How can I use navcat to modify all wordpress domain names? how can I use navcat to modify all wordpress domain names, including the domain names that have been post-published? I am useless with Ins. how can I modify navcat?


Reply to discussion (solution)

For example, you want to change the blog address from http: // www. ***. com to http ://***. com. you cannot simply modify the address in the WP background. this will cause an internal link error in the article. Next, I will share my operations.

Use SQL statements to replace navcat.

First, we will introduce the SQL replacement command.
UPDATE table name SET field = REPLACE (field, 'replace content', 'replace value ');

Example:
UPDATE wp_options SET option_value = REPLACE (option_value, 'http: // www. ***. com ', 'http: // ***. com ');

Note that the above punctuation must be in English. Where wp_options is the table name, option_value is a field in the wp_options table, and wp_options contains the siteurl and home values.

Generally, you can modify the domain name by executing the following command:

Modify the site url and homepage address in option_value:
UPDATE wp_options SET option_value = REPLACE (option_value, 'replace content', 'replace value ');

Correct the internal links and attachments in the article:
UPDATE wp_posts SET post_content = REPLACE (post_content, 'replace content', 'replace value ');

Correct the default permanent link of a wordpress article:
UPDATE wp_posts SET guid = REPLACE (guid, 'replace content', 'replace value ');

Correct your website link in a blog User: (if your personal information does not contain your blog address, ignore it)
UPDATE wp_users SET user_url = REPLACE (user_url, 'replace content', 'replace value ');

Correct your blog link in comments:
UPDATE wp_users SET user_url = REPLACE (user_url, 'replace content', 'replace value ');

Correct the comment on your blog: (skip this if the comment does not contain your blog link)
UPDATE wp_users SET comment_content = REPLACE (comment_content, 'replace content', 'replace value ');

If you have not installed the No Self Pings plug-in, perform the following operations:
UPDATE wp_posts SET pinged = REPLACE (pinged, 'replace content', 'replace value ');
UPDATE wp_posts SET to_ping = REPLACE (to_ping, 'replace content', 'replace value ');

Basically, this is where there are blog addresses. to avoid any other changes, you can search for them in phpmyadmin.
The above is your actual operation method. if you need it, you can learn it...

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.