I use my own PHP framework (for any version) that works on any free or paid hosting but not on aaPanel on my vps.
The file structure is composed at the root by the app folder, the public folder and an .htaccess with the following code...
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
Inside the public folder I have a .htaccess with the following code...
<IfModule mod_rewrite.c>
Options -Multiviews
RewriteEngine On
RewriteBase /public
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .+$ index.php?url=$1 [QSA,L]
</IfModule>
And an index.php file with the following code...
<?php
//Call the starter
require_once ("../app/starter.php");
//Instance the controller class
$start = new Core;
?>
What could be the problem that gives me the 403 error?
Remember that this works on any other server...
Thank you!!