Problem upgrading nop on a test website

4 mesi tempo fa
Hi all, here's my problem.

In order to do so, i'd like first to do a test on a copy of the site, so i've made a copy of the db and the root, assigned it to a new website on my iis and then changed in app_data de db name.

the original site is for example https://www.sitename.it
the copy i've made is http://test.sitename.it

now, when i call the site name, it gets redirected to a http://www.test.sitename.it, and ofcoruse it doesnt exist and display a "server not found" error.

if i make a new installation, with a new db, it works fine, but as soon as i change  db name in settings.txt, it redirect to the www and can't navigate it.
I suspect there's something in the db that i must change,mabye becouse the db is a copy of a different site with a different name, some options (i changed only name in table Store).
what else could i do?
thx
4 mesi tempo fa
You need to change store url from db table store. Did you do it?
4 mesi tempo fa
Don't know which nopCommerce version you are using.
I am assuming that your problem is with WWW prefix requirement settings. Go to https://YOUR_STORE/Admin/Setting/GeneralCommon and on the SEO section you will find this setting.  You may set Pages should not have WWW prefix or Doesn't matter
4 mesi tempo fa
i changed store name in table store yesterday but it's still not working
this is the test site
http://new.eurinnova.it

it a copy of this
https://www.lelepetshop.it

nop 3.9
as i sad if a make a new installation its ok, the url http://new.eurinnova.it works fine.
as soon as i change the db it redirects, as u can see
cant event go to teh admin page
there's any thing i can change on the db directly from sql?
4 mesi tempo fa
noffy wrote:

cant event go to teh admin page
there's any thing i can change on the db directly from sql?

Here it is,
Update [dbo].[Setting] SET [Value] = 'NoMatter' where [Name] = 'seosettings.wwwrequirement'

or,
Update [dbo].[Setting] SET [Value] = 'WithoutWww' where [Name] = 'seosettings.wwwrequirement'
4 mesi tempo fa
Look for the wwwRequirement in SEO settings (settings table), and set to:

        /// Doesn't matter (do nothing)
        NoMatter = 0,

        /// Pages should have WWW prefix
        WithWww = 10,

        /// Pages should not have WWW prefix
        WithoutWww = 20
4 mesi tempo fa
rmahbub63 wrote:

cant event go to teh admin page
there's any thing i can change on the db directly from sql?
Here it is,
Update [dbo].[Setting] SET [Value] = 'NoMatter' where [Name] = 'seosettings.wwwrequirement'

or,
Update [dbo].[Setting] SET [Value] = 'WithoutWww' where [Name] = 'seosettings.wwwrequirement'


now its working
thank's a lot.
i'll start right away the tests on this version to upgrade to 4.4
i'll probably have other problem, i will ask here if need anything
thx u very much
4 mesi tempo fa
noffy wrote:

now its working
thank's a lot.
i'll start right away the tests on this version to upgrade to 4.4
i'll probably have other problem, i will ask here if need anything
thx u very much

Welcome! Glad to know that it helps you.
Feel free to ask if you need anything else.
4 mesi tempo fa
Hello, im here again with another problem...
i managed last week to make it work properly. a fully functioning 4.40.4 version with my current db.

Yesterday the site stopped working ,giving this error
HTTP Error 500.30 - ASP.NET Core app failed to start
and in the event viewer there where an error with aspnetcoreV2

I thought i did something wrong, so i did a new installation.
I did a fresh installation of nop4.40.4, with a new db, and its working fine (so u guess that i dont have any problem with my actual .net core version, witch is 5.40)
as soon as i change the db in appsettting.json, i get the above error

what it myght be the problem?
Thx a lot for your help
4 mesi tempo fa
Please try to set stdoutLogEnabled="true" in web.config file, and then restart the website.
Try to check logs under Logs folder.