how to stop redirect to live site in development?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 лет назад
In the process of upgrading to nop V3.70, I am working with a copy of the site & database on my laptop.  The localhost version browses fine, but when I click "Log in", I am redirected to the fully-qualified URL of the live site.

How can I "Log in" in to this development site?

---Jay R O
8 лет назад
jayro wrote:
In the process of upgrading to nop V3.70, I am working with a copy of the site & database on my laptop.  The localhost version browses fine, but when I click "Log in", I am redirected to the fully-qualified URL of the live site.

How can I "Log in" in to this development site?

---Jay R O


Did you customize theme? May be login link contain a static live url ..Please check it.
8 лет назад
At database of your local can change the value if store table.

change value of column Url as "http://localhost:15536/" if it contain live site address.
change value of column SslEnable False, If it contain true.
8 лет назад
sina.islam wrote:
At database of your local can change the value if store table.

change value of column Url as "http://localhost:15536/" if it contain live site address.
change value of column SslEnable False, If it contain true.


you can also do it from admin
8 лет назад
sina.islam wrote:
At database of your local can change the value if store table.

change value of column Url as "http://localhost:15536/" if it contain live site address.
change value of column SslEnable False, If it contain true.


In table "Store", I changed just column "SslEnable" from True to False, and now the link browses the login page of the local site as needed.

(I did not need to change column "Url")
(I was not able to do it from admin, because I couldn't get logged in locally)

Thanks sina.islam!!
8 лет назад
I know it is a old post after that I want to share a experience about "redirect to live site".This type of problem other may face. Today I download my live site's database and restore  it at local sqlserver and change everything as we discuss at this post and everything try to work fine but the url appears with www. The easiest way to solve the issue go to sqlserver of your pc then write a query for update  Setting Table value of 'Pages should have WWW prefix' by 'Doesn''t matter'.
8 лет назад
jayro wrote:
In the process of upgrading to nop V3.70, I am working with a copy of the site & database on my laptop.  The localhost version browses fine, but when I click "Log in", I am redirected to the fully-qualified URL of the live site.

How can I "Log in" in to this development site?

---Jay R O




i think need to change login link  live url to local url http://localhost: Please check it. and helpful link  https://www.nopcommerce.com/boards/t/27428/local-link-redirects-to-live-server.aspx
7 лет назад
Hi

I have the same issue even after updating Store table.

update [dbo].[Store]
set [SslEnabled]=0,
[SecureUrl]=null,
[Url]='http://localhost:15536/'

seosettings.wwwrequirement = NoMatter
theme = DefaultClean

any ideas?
7 лет назад
After changing store URL in DB I was still being redirected to live site. My solution was to clear Chromes cache. Close and restart browser. Next click to login took me to localhost login. Hope this helps someone else.
7 лет назад
If you had on the live site an ssl certificate, make sure the setting for securitysettings.forcesslforallpages is set to false as well...
try searching it in the admin->settings->all settings
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.