Recently my client asked me to upgrade and add some new elements to their company managing system. They started it as download zip file from https://our.umbraco.org/ and added it to iis on their server. For development and upgrade I need to set it up in Visual Studio 2015 with copy of their database. So I’ve started a new project with their version of Umbraco (7.2.8), copied all necessary files from their server, including database (MS SQL 2012 Express). When I run it the url at first points to localhost but suddenly it gets redirected to my clients page.
You should find the node that is redirecting in Umbraco. i.e. if it's the home node, navigate to that in Umbraco, then click on the Properties tab. At the bottom, you will see the configured URL's. If that is not a relative URL, then a hostname might be configured. You can update, remove or add hostnames by right clicking on a node and selecting culture and hostnames.
Another cause may be if url rewrite rules are configured either in your web.config or in the config/urlRewriting.config file.
The only other cause I can think of would be custom code.
Thanks for your help. Web.config and config/urlRewriting.config were first thing that I changed after importing files. That didn't help. Also removed custom code and didn't help.
The solution for me was really strange, I've change the steps of creating whole project.
New project in Visual Studio with Umbraco 7.2.8
Start Umbraco and set up database and one of the provided example pages.
Gut it out and put in files from my clients project
Then change the Web.config and config/urlRewriting.config (thanks Alex and Andrew)
Now start Umbraco and everything works fine
At first I was missing step 2, probably this helped.
Umbraco redirects me to original server
Recently my client asked me to upgrade and add some new elements to their company managing system. They started it as download zip file from https://our.umbraco.org/ and added it to iis on their server. For development and upgrade I need to set it up in Visual Studio 2015 with copy of their database. So I’ve started a new project with their version of Umbraco (7.2.8), copied all necessary files from their server, including database (MS SQL 2012 Express). When I run it the url at first points to localhost but suddenly it gets redirected to my clients page.
Why does it happen and where can I change it?
Hi KB,
There are a lot of places where site can make redirect.
Check these places:
1) 301 Tracker package
2) UrlRewriting plugin
3) Custom code
Umbraco doesn't make redirects in some secret way, try to open admin part and look at these places.
Thanks,
Alex
You should find the node that is redirecting in Umbraco. i.e. if it's the home node, navigate to that in Umbraco, then click on the Properties tab. At the bottom, you will see the configured URL's. If that is not a relative URL, then a hostname might be configured. You can update, remove or add hostnames by right clicking on a node and selecting culture and hostnames.
Another cause may be if url rewrite rules are configured either in your web.config or in the config/urlRewriting.config file.
The only other cause I can think of would be custom code.
Thanks for your help. Web.config and config/urlRewriting.config were first thing that I changed after importing files. That didn't help. Also removed custom code and didn't help.
The solution for me was really strange, I've change the steps of creating whole project.
At first I was missing step 2, probably this helped.
is working on a reply...