Moved site, unable to change url

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi,
We have moved our site to a new url, but the site automatically redirects back to the old url. We need to change it in the admin, but due to the redirect cannot access the backend. Is there another way, maybe with an sql query or something we can change the url for the site?
4 years ago
Access to database and execute this query.

update [store] set SslEnabled = 0

Then restart application, clear browser cache (if needed) and try to access administration. Go to Configuration > Stores and edit your store properties.
4 years ago
neilzb wrote:
Hi,
We have moved our site to a new url, but the site automatically redirects back to the old url. We need to change it in the admin, but due to the redirect cannot access the backend. Is there another way, maybe with an sql query or something we can change the url for the site?



Run below query if your site is secured

update Store
set [Url]='http://youstorname.com/',SslEnabled=1
where Id=1


If not secured then

update Store
set [Url]='http://youstorname.com/'
where Id=1


After executing the query clear the browser cache and access the new URL. You may need to clear the server memory cache after change the url. To do that upload the web.config file again
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.