All pages of my website (except homepage) are giving 500 internal server error
Other Information
After searching on the internet for hours, I found a solution which says resetting permalinks in my wordpress admin pannel would solve the problem, but even its not working for me. Can anyone tell me a working solution that solves my problem/
I did as you said but then for sometime my website is visible but now again it’s showing error 404
Here is the code in my ,htaccess file(after making changes mentioned by you):
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ./index.php [L]
</IfModule>
# END WordPress
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]