In default installation of WordPress, whenever you are trying to install a plugin or themes from the repository, you will ask for FTP credentials to proceed. I found that is pretty disturbing because I don’t understand why WordPress needs that.
To bypass this annoying step, you can add the following directive in your wp-config.php . Once added, WordPress will never prompt that FTP credential screen again.
There are many situations when you need to migrate your blog data from one server to another, sometime from one domain to another domain. In such cases you will often need to fix the urls of the attachments which are included in the post, and other static links referring to old domains.
To fix such URLs easily, install the Velvet Blues Update URLs plugin from the default wordpress repository. Once installed, go to Settings->Update URLs link from your wordpress admin panel and update the URLs as shown in the screenshot below
WordPress stores all the media files in the uploads directory inside wp-content/uploads directory. Sometime you may want to change it to a different path than the default one for better security or any other purpose. WordPress allows users to change the media directory from configuration file. For example, if you want to move your media files to a new folder named assets in the root directory, change the value of UPLOADS directive like this
define('UPLOADS', 'assets' );
Remember not to add any trailing or beginning slash
Sometime after moving media directory, your media files may suffer from 404 Error which are already linked with existing posts using their previous locations. To fix this problem, lets wait for our next post, Tip 002 – Fixing Media File Urls After Migration