Re: Simple SEO URL [support thread]
im trying to add a 301 redirect from non-www to www by using this code (entire .htaccess file including SSU stuff);
Code:
#### 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]
when i use this code, all the links get messed up (links to products) and i cant get into admin.. any ideas?
Thanks in advance
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
ocs09
im trying to add a 301 redirect from non-www to www by using this code (entire .htaccess file including SSU stuff);
Code:
#### 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]
when i use this code, all the links get messed up (links to products) and i cant get into admin.. any ideas?
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
Quote:
#### 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.
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
Jerry5763837
hi, yellow,
Are you there?
hello, countrycharm,
could you please advise your solution to this problem? thanks.:cool:
Re: Simple SEO URL [support thread]
It is recommended to get a newer version if you want auto alias. get it from my signature link.
Re: Simple SEO URL [support thread]
Yellow can you see if their is a solution to this problem before you call it a weekend. Thank you very much. This comes from page 320
http://www.zen-cart.com/forum/showpo...postcount=3194
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
countrycharm
Since the author already disable it on his site im quite unsure what happens. My best guess is that something went wrong with the htaccess, again I can be wrong.
PS: your google xml should be correct now
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
yellow1912
Since the author already disable it on his site im quite unsure what happens. My best guess is that something went wrong with the htaccess, again I can be wrong.
PS: your google xml should be correct now
Thank you for fixing that. It's kind of slow now, but I guess I can live with that. I have the same problem as the other guy had. If you go to my site in my signature you can click on a category then click another one and go back to the one you click the first time and the page will be without any formatting like it lost all of its css.
Re: Simple SEO URL [support thread]
Turn off gzip for now, seems like the page content is messed up.
Re: Simple SEO URL [support thread]
hi,
thanks for the help but same thing unfortunately, cant get into admin for some odd reason
Quote:
Originally Posted by
countrycharm
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
Go back to your store admin/configurations/simple seo cut it back on and see what happens.
Re: Simple SEO URL [support thread]
What module have you installed recently that can interfere with content? I know SSU cant do that for sure.