Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • KB 14 posts 95 karma points
    Nov 09, 2016 @ 15:38
    KB
    0

    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?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Nov 10, 2016 @ 22:37
    Alex Skrypnyk
    0

    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

  • Andrew Vennells 16 posts 101 karma points
    Nov 11, 2016 @ 03:18
    Andrew Vennells
    0

    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.

  • KB 14 posts 95 karma points
    Nov 14, 2016 @ 12:10
    KB
    100

    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.

    1. New project in Visual Studio with Umbraco 7.2.8
    2. Start Umbraco and set up database and one of the provided example pages.
    3. Gut it out and put in files from my clients project
    4. Then change the Web.config and config/urlRewriting.config (thanks Alex and Andrew)
    5. Now start Umbraco and everything works fine

    At first I was missing step 2, probably this helped.

Please Sign in or register to post replies

Write your reply to:

Draft