Bagisto Forum

    Bagisto

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

    CSS/JS not loading after putting .htaccess and index.php to main directory

    General Discussion
    2
    11
    315
    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.
    • Rishabh-Webkul
      Rishabh-Webkul last edited by

      Hello @arunchahar

      Kindly let us know if you make any specific changes in the .htaccess

      Thanks & Regards

      A 1 Reply Last reply Reply Quote 0
      • A
        arunchahar @Rishabh-Webkul last edited by

        @Rishabh-Webkul here are the change in .htaccess file:

        Old: require DIR.'/../vendor/autoload.php';
        New : require DIR.'/vendor/autoload.php';

        Old: $app = require_once DIR.'/../bootstrap/app.php';
        New: $app = require_once DIR.'/bootstrap/app.php';

        Hope this should help you to understand.

        A 1 Reply Last reply Reply Quote 0
        • Rishabh-Webkul
          Rishabh-Webkul last edited by

          @arunchahar

          This is index.php i am asking about .htaccess did you make changes in that file also?

          Thanks & Regards

          A 1 Reply Last reply Reply Quote 0
          • A
            arunchahar @arunchahar last edited by

            @arunchahar my bad for miss understanding, no changes were made to .htaccess.

            1 Reply Last reply Reply Quote 0
            • A
              arunchahar @Rishabh-Webkul last edited by

              @Rishabh-Webkul hope you are doing well, i was wondering any update on this?

              1 Reply Last reply Reply Quote 0
              • Rishabh-Webkul
                Rishabh-Webkul last edited by

                Hello @arunchahar

                File name: bagisto.vite.php

                update the path of build_directory :

                from :- themes/shop/default/build

                to :- public/themes/shop/default/build

                File name : theme.php

                Update the file path of build_directory:

                from :- themes/shop/default/build

                to :- public/themes/shop/default/build

                file name :- vite.config.js inside shop package

                update the file path of the buildDirectory

                from :- themes/shop/default/build

                to :- public/themes/shop/default/build

                Thanks & Regards

                A 1 Reply Last reply Reply Quote 0
                • A
                  arunchahar @Rishabh-Webkul last edited by

                  @Rishabh-Webkul after making above changes, i ran php artisan optimize, and then ran command php -S localhost:8000 and getting the below error:

                  error.PNG

                  1 Reply Last reply Reply Quote 0
                  • Rishabh-Webkul
                    Rishabh-Webkul last edited by

                    Hello @arunchahar

                    Kindly provide a complete reference video, where the first part shows the original content without any changes, and the second part applies the changes we have guided you on.

                    Because in our local everything is working fine

                    Thanks & Regards

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      arunchahar @Rishabh-Webkul last edited by

                      @Rishabh-Webkul since there was no option to upload video here i have created a wetransfer link, check it out. hope this will make a better understanding.
                      link: https://we.tl/t-e9zIqCpUty

                      1 Reply Last reply Reply Quote 0
                      • Rishabh-Webkul
                        Rishabh-Webkul last edited by

                        Hello @arunchahar

                        Kindly create a ticket regarding your issue from the link below.

                        https://bagisto.uvdesk.com/en/

                        Thanks & Regards

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