Anyone know what is going on?

Here is my .htaccess file (only rewrite conf):

RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^api/rest api.php?type=rest [QSA,L]

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteRule .* - [L,R=405]

RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php [L]
  • Did you check secure and unsecure url in database? – Savan Patel May 10 '19 at 13:24
  • Savan, thanks for your response. Here is my conf: imgur.com/a/iLKPzb6. Translation tip: "Sim" means "Yes" – Filipe Marques May 13 '19 at 12:06
  • Actually, I don't think magento is doing this. I'm quite sure it was some mistake I did setting up apache2 I can't figure out. The problem is that I can't make radical changes like reinstall all services because I'm on an production server. – Filipe Marques May 13 '19 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.