• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

CSS/JS not loading after removing /public from URL

Bug Report
2
4
2.3k
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.
  • C
    cerahil last edited by 19 Feb 2019, 10:26

    Hi,

    I have removed /public from app url and added required .htaccess and index.php file in root folder. But now bagisto theme css and js files not loading.

    Can you tell me where to update URL for this so it loads properly from /public folder ?

    Thanks

    1 Reply Last reply Reply Quote 0
    • B
      bagisto-mogul Banned last edited by bagisto-mogul 19 Feb 2019, 10:39 19 Feb 2019, 10:35

      Firstly, that was not to be done, there are so many functions in Bagisto dependent on that directory.
      You shouldn't delete any directory.

      Public directory holds all assets such as js, css and images needed for Bagisto. And definitely nothing will work for you after that believe me.

      Your project is on server or you are running locally?

      1 Reply Last reply Reply Quote 0
      • C
        cerahil last edited by 19 Feb 2019, 14:17

        I have not removed /public folder. Just try to load laravel app using the main domain url instead of /public. I figure it out using VirtualHost setup to use /public as main folder for the domain.

        1 Reply Last reply Reply Quote 0
        • B
          bagisto-mogul Banned last edited by bagisto-mogul 20 Feb 2019, 04:15 20 Feb 2019, 04:14

          Yeah you are absolutely right @cerahil in your site configuration which seems to be an Apache server your project path had to be till public directory not the root directory.

          This is how it will work fine.

          1 Reply Last reply Reply Quote 0
          3 out of 4
          • First post
            3/4
            Last post