Jump to content

[SOLVED] Pick a default URL won't work


Recommended Posts

Hello. My prestashop version is 1.3.2. I have enabled friendly URL. I add the following code to my .htaccess in order to redirect from www.mysite.com to mysite.com, but it didn't work.

RewriteEngine on (ONLY if it's not already there)

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

If I understand correctly the person who visit my site on www.mysite.com should be redirected to mysite.com. On the URL should be displayed mysite.com. Is that correct? Ofcourse I'm not put the (only if its not already there) in the code. Thank you for any suggestions.

Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...