cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 adding strange code to home page url

SOLVED

Magento 2 adding strange code to home page url

I don't know why this is happening but anytime I visit my site, instead of www.domain.com I am directed to something like www.domain.com/?sid=3pmv8cscsccdjinldmosv75i21

 

I have tried an URL rewrite but anytime I do this the code changes. What is going on and how do I stop it?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 2 adding strange code to home page url

Hello @richard_garner 

 

Yes, you can able to disable SID from the URL, kindly follow the below steps :

 

  • Magento dashboard > Store > Configuration > General > Web > Session Validation Settings > Use SID on Storefront set its value to No.
  • Re-index Magento
  • Refresh Magento cache

Then it will not able to showcase SID on the storefront !

 

For more details refer this link - https://magento.stackexchange.com/questions/147373/how-to-remove-sid-session-id-from-url-in-magento-...

 

https://www.shoaibrehman.com/solved-remove-sid-session_id-url-magento-2/

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

View solution in original post

3 REPLIES 3

Re: Magento 2 adding strange code to home page url

Hello @richard_garner 

 

Yes, you can able to disable SID from the URL, kindly follow the below steps :

 

  • Magento dashboard > Store > Configuration > General > Web > Session Validation Settings > Use SID on Storefront set its value to No.
  • Re-index Magento
  • Refresh Magento cache

Then it will not able to showcase SID on the storefront !

 

For more details refer this link - https://magento.stackexchange.com/questions/147373/how-to-remove-sid-session-id-from-url-in-magento-...

 

https://www.shoaibrehman.com/solved-remove-sid-session_id-url-magento-2/

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Magento 2 adding strange code to home page url

Thank you!

Re: Magento 2 adding strange code to home page url

Hello @richard_garner 

 

Happy to help and keep helping others Smiley Happy

if issue solved,Click Kudos & Accept as Solution