ocs09:
im trying to add a 301 redirect from non-www to www by using this code (entire .htaccess file including SSU stuff);
BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
Make sure to change "zencart" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /
RewriteBase /
Deny access from .htaccess
RewriteRule ^.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]
EOF SSU
RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
>
> Thanks in advance
Go to your store admin/configuration and cut off simple seo, clear your cache. Make sure your .htaccess look like this. Is zen cart in the root folder if so, change to: RewriteBase / If zen cart is in another folder then you will have to make it look like this RewriteBase / Your custom folder name
> #### BOF SSU
> Options +FollowSymLinks -MultiViews
> RewriteEngine On
> RewriteCond %{HTTP_HOST} ^Your.com$ [NC]
> RewriteRule ^(.*)$ http://www.your.com/$1 [R=301,L]
>
> # Make sure to change "test_site" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /
> RewriteBase /
>
> # Deny access from .htaccess
> RewriteRule ^\.htaccess$ - [F]
>
> RewriteCond %{SCRIPT_FILENAME} !-f
> RewriteCond %{SCRIPT_FILENAME} !-d
> RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]
> #### EOF SSU
Go back to your store admin/configurations/simple seo cut it back on and see what happens.