I have created a laravel project and upload to the server like https://www.mydemosite.org/healthcard
And i uploaded all the files to the sub directory "healthcard". Now i have done the changes in the public folder.
move all the files from public folder to "healthcard" folder.
Change the index file as this
require DIR.'/bootstrap/autoload.php'; $app = require_once DIR.'/bootstrap/app.php';
after this i added a .htaccess file to root
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
And in public folder like this
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /healthcard/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
</IfModule>
I have changed the .env file also like
APP_URL=https://www.mydemosite.org/healthcard
but still it is not working. Should i do any other changes. Please let me know. Advance thanks for help.