- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2021
04:02 AM
04-19-2021
04:02 AM
Subdomain showing main site url as base url
Hi All,
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
https://www.staging.housenameplate.co.uk/
Please help me.
Any help will be appriciated.
Thanks
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2021
04:00 AM
04-20-2021
04:00 AM
Re: Subdomain showing main site url as base url
Hello @pawanpacka8944
Open the database of your store and go to the table core_config_data
Here, search for "housenameplate.co.uk" in the value column with the %like% option
Check out the result and change the searched term with the staging site's URL.
Now, pass the below command, clear the cache and check the result.
php bin/magento cache:flushI hope it helps.
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.
200+ Magento 2 Extensions for Enhanced Shopping Experience.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2021
03:26 AM
05-16-2021
03:26 AM
Re: Subdomain showing main site url as base url
Hi @pawanpacka8944,
How to change base_url settings with mysql from the command line
SQL Commands:
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.
LitExtension - #1 Shopping Cart Migration Expert
LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.
Visit website: http://litextension.com/
LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.
Visit website: http://litextension.com/