Move WordPress from Root to Subfolder

Here is the instructions if we suppose that you intially installed your site into ROOT folder (in the link you provided it’s the method called Method II (With URL change) ). There are two important steps and between them your site may break but it’s not an issue : I) First you need to update … Read more

How to disable directory files from accessing?

If you are doing it for security purpose you can use following steps: add index.php file to each folder that you don’t want to show the content of. <?php // Just leave the index.php file blank And second way to reduce insecurity is to use if(!defined(‘ABSPATH’)){ exit; } inside every php files to no access … Read more

Automating WP application directory creation (domain name passed as a variable argument)

Ok, I just checked the WP CLI documentation. There are 3 important steps: Download WordPress: (I would use it with the options –path and –locale, but those are optional) wp core download Create a proper wp-config.php: wp config create –dbname=… –dbuser=… –dbpass=… –dbhost=… Install WordPress: wp core install –url=… –title=… –admin_user=… –admin_email=… Now there are … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)