Hi, I am running ok on local but when It goes into server it gives a “Index of /” page.
My htaccess:
ErrorDocument 404 /404.php
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://foodand.eu/$1 [R,L]
Any idea?
The “Index of /” page issue may occur if the root directory is missing an index.php
or index.html
file. Ensure these files are present and have proper permissions. Also, verify that mod_rewrite is enabled and your .htaccess
is correctly configured for the HTTPS redirect. Finally, check the server’s root path setup to ensure it’s pointing to the correct directory.