0

I have Magento2 multi-website running in one installation. There is Issue of SID

For example:-

https://example.com/?SID=sfl317buq8ru4uf4a

There is the solution if i am running the single store website. Goto Store > Configuration > General > Web > Session Validation Settings > Use SID on Storefront and set its value to No

But How to remove SID when I have multi-website running in one installation?

  • please check my answer and upvote accept answer if it's useful for you. – Rohan Hapani Jul 6 '18 at 4:14
0

Go to your .htaccess fine and find the line

RewriteEngine on

If www available :

RewriteEngine on 
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

If www not available :

RewriteEngine on 
RewriteCond %{HTTP_HOST} !^yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]
  • Hi Rohan, Thanks for your reply. I have already tried this .htaccess rule. We are facing issue with this (sub-domain stores are redirecting to the main domain). For example:- We have 4 stores running on the same Magento install. 1) www.abc.com 2) store1.abc.com 3) store2.abc.com 4) store3.abc.com Now when i am applying above .htaccess rule, sub store (store1.abc.com) redirecting to (abc.com). Thanks – Ajay Jaiswal Jul 6 '18 at 12:45
  • Hi, Still looking for solution. Please Help! – Ajay Jaiswal Jul 18 '18 at 15:10

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.