Copied to clipboard

Flag this post as spam?

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


  • Naor C 14 posts 123 karma points
    May 23, 2024 @ 08:16
    Naor C
    0

    Start umbraco on a different path than /umbraco

    Hi all.

    Currently, when I run my umbraco locally, it opens the browser with the website: https://localhost:44334/umbraco#/

    I want that when I start the program, Umbraco will default start on page https://localhost:44334/myproject/ instead of the "umbraco#" path. If that's not possible, then https://localhost:44334/myproject/umbraco

    The only place that I think is relevant for this change is at appsettings-schema.json however, git ignores this file, so I'm not sure whether it would work when I pass the CI/CD processes and deploy in the cloud.

    How can I do it using Umbraco 13? Thanks!

  • Huw Reddick 1920 posts 6648 karma points MVP 2x c-trib
    May 23, 2024 @ 08:51
    Huw Reddick
    0

    It normally only opens at /umbraco if there is some kind of upgrade it thinks is required otherwise by default it should open your umbraco homepage.

    Are you hosting your umbraco site as an application rather than as a standard root website?

    If that is the case you should probably set the culture/hostname on your root node to be https://localhost:44334/myproject otherwise it expects it to be just https://localhost:44334/

  • Naor C 14 posts 123 karma points
    May 23, 2024 @ 09:12
    Naor C
    0

    If I understand your question correctly, my Umbraco site is not an application, it's a standard root website.

    I want that my main umbraco will be located in https://localhost:44334/myproject instead of https://localhost:44334/umbraco

    Is it even possible? Thanks in advance.

  • Huw Reddick 1920 posts 6648 karma points MVP 2x c-trib
    May 23, 2024 @ 09:17
    Huw Reddick
    1

    your umbraco site is not located in https://localhost:44334/umbraco that is where the backoffice (administration lives) and it is not possible to change that location.

  • Naor C 14 posts 123 karma points
    May 23, 2024 @ 13:22
    Naor C
    0

    Sorry for being unclear.

    So I understand I can't change it. But is it possible to add any suffix? For example localhost:44334/umbraco/myproject ? and being redirected to the same page?

  • Huw Reddick 1920 posts 6648 karma points MVP 2x c-trib
    May 23, 2024 @ 13:33
    Huw Reddick
    0

    For what reason?

  • Naor C 14 posts 123 karma points
    May 23, 2024 @ 13:38
    Naor C
    0

    The project I'm dealing with is hosted on Azure. I am building 2 umbraco projects: myproject, mysecondproject. My customer wants one domain that would lead to both of the projects. So they wrote a rule in azure: If the site starts with /umbraco/myproject - I will be redirected to realdomain.com/umbraco/myproject

    if the site starts with /umbraco/mysecondproject - I will be redirected to realdomain.com/umbraco/mysecondproject

    I know it sounds silly, but they say that if they want to make a new domain it would cost them too many working hours and they want to check if it's possible to do so in Umbraco.

  • Huw Reddick 1920 posts 6648 karma points MVP 2x c-trib
    May 23, 2024 @ 19:21
    Huw Reddick
    0

    You shouldn't use /umbraco that is a reserved path which points to the backoffice

  • Naor C 14 posts 123 karma points
    May 26, 2024 @ 05:18
    Naor C
    0

    Thank you for your answer :) I want the backoffice url to change to localhost:44334/umbraco/myproject. So as far as I understand - it is impossible / not recommended?

  • Huw Reddick 1920 posts 6648 karma points MVP 2x c-trib
    May 26, 2024 @ 07:46
    Huw Reddick
    100

    It is not possible

  • Naor C 14 posts 123 karma points
    May 26, 2024 @ 07:47
    Naor C
    0

    Thank you very much Huw :-)

Please Sign in or register to post replies

Write your reply to:

Draft