I am using the latest version of Opencart, 1.4.9.4
I am a real newbie and don't have much PHP knowledge. However I work in SEO and know that we need a 301 redirect to redirect example.com to http://www.example.com.
When I do this using a standard 301 redirect in a .htaccess file such as this:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
I am no longer able to login to Opencart as admin.
Having read a bit here and elsewhere I understand that now opencart cannot resolve the admin url, or something like that.
It has been suggested that I do the 301 redirect like this:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
Will that work?
Could someone just tell me in easy steps what I need to do to resolve this? If I need to edit files other than the .htaccess access file could you please make it easy to understand for me. Thanks
