Jump to content

[solved] How to redirect PrestaShop to open through www


Recommended Posts

to learn how to update and keep your .htaccess updates read here

 

http://www.prestashop.com/forums/topic/2131[spam-filter]tip-15-and-custom-htaccess/

 

here is the redirect:

(also you should update your shop url's with www in back office-->pref-->seo & urls

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
Link to comment
Share on other sites

 

to learn how to update and keep your .htaccess updates read here

 

http://www.prestashop.com/forums/topic/2131[spam-filter]tip-15-and-custom-htaccess/

 

here is the redirect:

(also you should update your shop url's with www in back office-->pref-->seo & urls

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

Sorry guys for disturbing but

 

do i need to write the code above the line - 

 

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again 

 

???

Link to comment
Share on other sites

Sorry guys for disturbing but

 

do i need to write the code above the line - 

 

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again 

 

???

 

jajaja...yes interrupting us poor moderators...

yes above that line

Link to comment
Share on other sites

 

In BO seo & urls

 

Shop domain - www.mydomin.com
SSL domain - www.mydomin.com
Base URI  - /
 
 
is it ok ?

 

that would be my 'suggested' setting...this is only important so you don't lose products in cart etc, i.e. ps will use non www cookie and www cookie...so this avoid that issue

Link to comment
Share on other sites

I just logged in and logged off using chrome..without issue...all the way to paypal...

 

and it was nice because I had originally tested using firefox...when I logged on using chrome it rebuild my cart with the one product from firefox...

 

so A ok from here

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...