Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems over https #357

Open
ddmo opened this issue Jan 20, 2023 · 1 comment
Open

Problems over https #357

ddmo opened this issue Jan 20, 2023 · 1 comment

Comments

@ddmo
Copy link

ddmo commented Jan 20, 2023

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

@MINORITYmaN
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants