Showing posts with label How to Remove session id ?___SID=U from the URL Magento. Show all posts
Showing posts with label How to Remove session id ?___SID=U from the URL Magento. Show all posts

Saturday, 26 July 2014

Remove SID from URL in Magento


Remove SID from URL in Magento

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

If you want to have www part:

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:

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