Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    I would like like to change the admin route or url

    General Discussion
    3
    7
    704
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      THINKLIFE last edited by

      Please is it Possible for me to change the admin Route or Url?
      for example
      https://example.com/admin takes me to the admin page.
      this url can easily be guessed by anyone .
      I would love to change it to something different or move it to a sub-domain

      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by

        @THINKLIFE
        ok allow us time, we will get back to you with the solution soon!
        🙂

        1 Reply Last reply Reply Quote 0
        • devansh-webkul
          devansh-webkul last edited by

          Hi @THINKLIFE,

          There is route file i.e. 'packages/Webkul/Admin/src/Http/routes.php'. If you see that file, you need to change your prefix only,

          Route::prefix('admin')->group(function () {
              ...
          }
          

          to

          Route::prefix('prefix-name-you-want-to-put-here')->group(function () {
              ...
          }
          

          Important Note: As I am seeing the code structure there are several blade files in which 'url('/admin/dashboard')' is written so you need to replace it with the prefix as well.

          However, we are working on it to make it single change which reflect to multiple areas.

          1 Reply Last reply Reply Quote 0
          • T
            THINKLIFE last edited by

            @devansh419 thanks for your solutions

            1 Reply Last reply Reply Quote 0
            • T
              THINKLIFE last edited by

              @Vaishali-Agarwal am still expecting a solution from you

              1 Reply Last reply Reply Quote 0
              • V
                Vaishali Agarwal last edited by

                Hi @THINKLIFE
                I transferred your query to @devansh419 for a quick response,So he gave you the possible solution.
                Kindly do the same as suggested by @devansh419 if still any doubt, don't hesitate to ask.

                Thanks

                1 Reply Last reply Reply Quote 0
                • T
                  THINKLIFE last edited by

                  @Vaishali-Agarwal alright i appreciate

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post