I have a question about setting when separates files of Laraship.
People say that the core files of Laravel shouldn't place in public folder because of security problem.
So I'd like to separate into files in public folder and files in not public folder like page No.1 of attached pdf file.
My question is that when I separate files, which setting(s) do I modify in Laraship?
I understand to modify public/index.php, but I don't know other setting(s).
Actually I separated files and modified public/index.php.
Then html source shows that external css files and JavaScript files aren't set in href and src attribute like page No.2 of attached pdf file.
Attachments
Hello, The www folder should be mapping to the "public" folder under laraship project , this can be done be modifying apache or nginx virtual host.
if you dont have access to this you can add .htaccess file in the root folder, rename .htaccess.txt to .htaccess
Attachments
It seems that the structure of Laraship never change…
After extracting downloaded zip file, I keep the structure of Laraship, and I transfer all files and folders to the server.
Is this right?
That’s correct
I can’t access to config file of apache in the server.
As you told, I transfer files and folders to keep structure of Laraship under www folder in the server.
Then I transfer .htaccess file under www folder, but 500 error shows.
How do I do?
Hello, you need to check log files as 500 error is very generic error
Please login or Register to submit your answer
what do you mean by core files ?
what do you mean by core files ?
I mean that “core files” are
???
There are no Core php scripts inside public folder
I’m sorry to bother you.
At image.pdf file, app_main folder and public folder under demo folder.
“core files” means all files under app_main folder.
Files of public folder never move from the original.