cancel
Showing results for 
Search instead for 
Did you mean: 

I have disabled SID from backend but It still showing on URL

SOLVED

I have disabled SID from backend but It still showing on URL

I have disabled SID from backend but It still showing on URL ,How should I do to remove sid?s86Fy

my magento version is 2.1.7

php version is 7.0.16

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: I have disabled SID from backend but It still showing on URL

@Magentobiz_com

 

Usually setting 'Use SID on storefront' to no fixes the issue. You may need to reindex magento to see the change. 

 

Assuming that you use apache as your web server, you could disable SID using htaccess as below: 

The solution is simple. Go to your .htaccess fine and find the line that says

RewriteEngine on 

If you want to have www part:

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

If you don’t want to have www part:

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

 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

View solution in original post

6 REPLIES 6

Re: I have disabled SID from backend but It still showing on URL

Could I change protected $_useSessionInUrl = true to $_useSessionInUrl = false in Sidresolver.php, How to overwrite this file?

Re: I have disabled SID from backend but It still showing on URL

@Magentobiz_com

 

Usually setting 'Use SID on storefront' to no fixes the issue. You may need to reindex magento to see the change. 

 

Assuming that you use apache as your web server, you could disable SID using htaccess as below: 

The solution is simple. Go to your .htaccess fine and find the line that says

RewriteEngine on 

If you want to have www part:

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

If you don’t want to have www part:

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

 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: I have disabled SID from backend but It still showing on URL

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

 

Rule:-

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

 

Now when i am applying above .htaccess rule, sub store (store1.abc.com) redirecting to (abc.com).

Please Help!

Thanks

Re: I have disabled SID from backend but It still showing on URL

I have disable SID in backend but still showing SID path on my website

here is my website link

https://www.beddingssets.com/

Re: I have disabled SID from backend but It still showing on URL

Hello

I am facing same issue can you please help me how you fixed this

Re: I have disabled SID from backend but It still showing on URL

I am facing same issue how you fixed this ?