The application was working fine on my local pc but when I transfer the files to web hosting it’s giving 403 Forbidden Error.
Can anyone tell me what I am doing wrong?
The application was working fine on my local pc but when I transfer the files to web hosting it’s giving 403 Forbidden Error.
Can anyone tell me what I am doing wrong?
You need to rewrite your /
directory to /public
. Add a .htaccess file to your installation/root directory with the following content.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
All it does is redirect everything to /public.