How to mapping a WordPress MultiSite Network Subdirectories to new domain with all subsites

On your olddomain.com, if you’re using an apache server, add .htaccess rewrite similar to:

RewriteEngine On
RedirectMatch 301 /subdirectory/(.*) http://newdomain.com/$1

This will take any olddomain.com/subdirectory/{site_slug}/ requests and 301 redirect them to newdomain.com/{site_slug}

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