Open the wp-config.php file under the root directory and locate the [php] require_once (abspath. ' wp-settings.php '); Add the following code in front of it: [php] $yovisunhome = ' http://'. $_server[' Http_host ']; $yovisunsiteurl = ' http://'. $_server[' Http_host ']; define (' Wp_home ', $yovisunhome); define (' Wp_siteurl ', $yovisunsiteurl); $_server[' http_host ' in PHP is used to obtain the routing domain name. In this way, can be based on the antecedents of Wp_home and Wp_siteurl variable assignment, to achieve the WordPress multiple domain name binding. If the site port is not a standard 80 port, and WordPress is not in the site root directory. You can refer to the following settings: [PHP] define (' wp_home ', ' http://'. $_server[' Http_host '). ' /WordPress '); Define (' Wp_siteurl ', ' http://'. $_server[' Http_host '). ' /WordPress '); where/wordpress is the directory of WordPress. Place the above two ends in front of this configuration document (I was placed before the MySQL configuration). By the way, clean up the trash bin time setting: [PHP] define (' Empty_trash_days ', 7); After setup, the "WordPress address (URL)" and "Site address (URL)" Options in the "Settings"-> "General" in the background control Panel become grayed out and cannot be edited. To prevent domain name changes to create pictures, accessories, etc., you must set the "full URL of the file" to "Wp-content/uploads" (same as the default upload path parameter) in the Settings-> Media in Control Panel. WordPress 3.5 after theSome users do not often use the settings removed or hidden, such as the background of the Media Settings page hidden upload path (upload_path) and file URL address (Upload_url_path) settings are hidden. If you still want to set these two options can refer to: WordPress Tutorial: Custom upload path and generate file URL address finally set their own domain name resolution address.
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.