cancel
Showing results for 
Search instead for 
Did you mean: 

Subdomain showing main site url as base url

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

 

2 REPLIES 2

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:flush
I hope it helps.
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

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/