fatfree-core icon indicating copy to clipboard operation
fatfree-core copied to clipboard

Problems over https

Open ddmo opened this issue 2 years ago • 1 comments

Hi, I've write a webapp locally over http... and goes great! But uploading on a sever (where I can't manage apache or php configuration or check log file) each call fails with 404 error. The difference, I suppose, is the protocol... Https.

This is my .htaccess: ` php_flag display_startup_errors on php_flag display_errors on php_flag html_errors on php_flag log_errors on

RewriteEngine On

RewriteRule ^(app|dict|ns|tmp)/|.ini$ - [R=404]

RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php [L,QSA] RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] ` It is correct also for https?! Thanks a lot

ddmo avatar Jan 20 '23 19:01 ddmo

can you show us a screenshot of the error? this could tell us if the error you see, is from f3 or from apache.

The difference, I suppose, is the protocol... Https.

if you upload it to the server, does http give the same error as https?

It is correct also for https?

i never had issues with the default .htaccess, it always worked with both. one thing that comes in my mind, some hostings use different subfolders for https, make sure both settings for http and https point to the same folder.

MINORITYmaN avatar Jan 29 '23 17:01 MINORITYmaN