Wordpress 3.5 Version How to modify the upload image path

Source: Internet
Author: User
Tags file upload php file root directory wordpress version

In fact, WordPress version 3.5 is still allowed to set the media file upload directory path, if the webmaster to modify the wordpress media upload file path only need to be set in the wp-config.php file, the following methods:

First open the wp-config.php file in the WordPress root directory, and then add the following line to define to the file (anywhere):

Define (' uploads ', '. ') Uploads ');

Explain the role of this definition, such as your domain name is: xxx.com, so that your image upload path is set to xxx.com/uploads/. Tip: Don't forget the last semicolon (;).

Then save the wp-config.php file. Upload a picture in the background test, success.

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.