I have a problem with subdomain,
I have just copy my site on subdomain but on subdomain loan all links with base url showing to main site, I have even change the base url in sub-domain database but still showing main site url.
I don't know any .htaccess file code need to be add.
You can see this
Please help me.
Any help will be appriciated.
php bin/magento cache:flushI hope it helps.
How to change base_url settings with mysql from the command line
SELECT path,value FROM core_config_data WHERE path LIKE 'web/unsecure/base%'; SELECT path,value FROM core_config_data WHERE path LIKE 'web/secure/base%';
You can refer to more detailed answers in this article.
Hope this can help you! Let me know if you need further assistance.
If issue solved, Click Kudos & Accept as Solution.