Post by mariusene » Wed Sep 03, 2014 3:29 am

Am urmatoarea problema.

Am instalat (si reinstalat) ultima versiune de OC prin intermediul "Softaculos" direct din cPanel.
La instalare ma intraba de protocol "http://" sau "http://www." si oricare din variante o aleg, sa zicem fara "www" cand intru pe site tastand adresa in cealalta varianta (in cazul de fata "http://www.site.ro") il afiseaza corect dar butoanele "Add to Cart" din hompage sunt inactive.
Cum pot face ca sa meaga in ambele moduri fara probleme?

Image


New member

Posts

Joined
Fri Jul 08, 2011 2:44 am

Post by florinsith » Wed Sep 03, 2014 4:41 am

Trebuie sa faci redirect in htaccess de la http:// la http://www. sau invers, depinde de ce varianta ai ales, a mai fost tratata problema aici in forum.

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by vanzari » Wed Sep 03, 2014 5:00 am

Salut incearca prin htaccess:

Code: Select all

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

New member

Posts

Joined
Fri Jan 31, 2014 12:52 am

Post by mariusene » Wed Sep 03, 2014 2:18 pm

Multumesc.
Am facut-o din cPanel ca sa ramana "batuta in cuie" si la o eventuala reinstalare.

Image


New member

Posts

Joined
Fri Jul 08, 2011 2:44 am

Post by florinsith » Thu Sep 04, 2014 11:39 pm

Tot in acelasi htaccess e chiar si prin cpanel

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Who is online

Users browsing this forum: No registered users and 6 guests