Use same database on main domain & sub domain

You cant have 2 sites that uses the same data from the same database, because of how WordPress works (permalinks etc), i am guessing you want to do this to show 2 different themes, 1 for the desktop version and 1 for the mobile version, try doing that with 1 WordPress installation and change the … Read more

How to use different domains for different blogs hosted in the same host in subdomains with .htaccess

You need a vhost for the subdomain that redirects to public_html/sub_domain_folder instead of trying to redirect with .htaccess. You can then do a www redirect in public_html/sub_domain_folder/.htaccess. There should be some option in cpanel when creating the subdomain do specify which folder it directs to if you don’t have direct access to your vhost.

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