0

Hi this might look like a repeated question, but I think my case might be very specific. It turns out that I have a project that has 2 stores and 3 store views, the client asked for a upgrade from M2.1.9 to M2.2.7, and in my local environment all works well, switching between store views, browsing the catalog and everything else works really good. When we deployed it to Magento Cloud servers, at first the /index.php/ was always present, The Search Engine Optimization -> Use Web Server Rewrites is set to Yes and the Use Secure URLs on Storefront also is. I have modified the .htaccess according to answers and tutorials I've found on the internet, but so far I haven't been able to crack this out. Also each language has its own pub/ so I have 3 of those folders and in each folder there is a .htaccess file, I have modified the 3 of them, and this is the <IfModule mod_rewrite.c> section in my .htaccess file:

RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
RewriteRule .* - [L,R=405]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !-l
#RewriteRule .* index.php [L]
RewriteRule . /index.php [L]

And it's really frustrating because each single modification has to be deployed to Magento Cloud's server and it takes 40-45 minutes each time. I hope someone can help me sort this out! Thanks in advance!

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.