- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have disabled SID from backend but It still showing on URL ,How should I do to remove sid?
my magento version is 2.1.7
php version is 7.0.16
Thanks
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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]
If this response was helpful to you, consider giving kudos to this post
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: I have disabled SID from backend but It still showing on URL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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]
If this response was helpful to you, consider giving kudos to this post
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: I have disabled SID from backend but It still showing on URL
I am facing same issue how you fixed this ?