Copied to clipboard

Flag this post as spam?

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


  • TheFiorano 6 posts 76 karma points
    Mar 01, 2022 @ 17:50
    TheFiorano
    0

    Site installed on localhost but redirects to Live Site

    Hi All,

    We've received a 'packaged' up site from our hosting company to bring the site 'in house'.

    Ive installed SQL Express & IIS locally. Ive imported the .bacpac file to SQL and copied the site into the wwwroot folder.

    When I first went to 'localhost' it redirected to the Live Site. So on some advice I commented out the 'rewrite /rewrite' tags in web.config, cleared the browser cache and even restarted the server. But its still redirecting to Live. Is there anywhere else in the site that could be causing the redirect?

    Any thoughts most welcome.

    Thanks!

  • Lindow 154 posts 1301 karma points
    Mar 01, 2022 @ 22:55
    Lindow
    0

    Heya.

    Try to check the culture and hostnames settings in the backoffice.

    You can also view them in the UmbracoDomain DB table :)

  • TheFiorano 6 posts 76 karma points
    Mar 02, 2022 @ 09:11
    TheFiorano
    0

    Hi Lindow,

    Thanks for the reply. Looking at the UmbracoDomain its emtpy so no luck there....

    Ive got a login to the live back office eg, livesite/ummbraco - are you able to point in the direction of where I should be looking?

    Thanks again

  • Lindow 154 posts 1301 karma points
    Mar 02, 2022 @ 09:15
    Lindow
    0

    I would try to search for the URL it redirects to in the codebase.

    It could be hardcoded somewhere.

Please Sign in or register to post replies

Write your reply to:

Draft