I wrote a .htaccess file that redirects to the public folder on my local machine but does not on my Cpanel after being uploaded to the server.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !/public
RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
# Direct all requests to /public folder
RewriteRule ^(.*)$ /public/index.php?url=$1 [L]
</IfModule>
How do I make it redirect online on my Cpanel?