[Zen Cart] Old links 404 errors

Magic SEO URLs for Zen Cart.
sohotech

[Zen Cart] Old links 404 errors

Postby sohotech » Sun Jun 07, 2009 8:01 pm

All the old links in Google to my site are receiving 404 errors. Why are the old links not resolving on 301 or 302?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Old links 404 errors

Postby inveo » Mon Jun 08, 2009 1:23 am

In order to redirect your old Rewritten URLs, you have to place your old Rewrite Rules into end of newly generated .htaccess file.

sohotech

Re: [Zen Cart] Old links 404 errors

Postby sohotech » Mon Jun 08, 2009 1:42 am

i was using Simple SEO before.
Based on the original htaccess file you are saying I should add the following rule

Code: Select all

RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]


to the end of the new htaccess and the old URLS's will redirect to the new Magic SEO generated links?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Old links 404 errors

Postby inveo » Mon Jun 08, 2009 1:48 am

Yes, but please also change this line in the beginning of this file:

Code: Select all

RewriteRule ^.*(\.php[0-9]{0,1}|\.htm|\.xml|\.css|\.js|\.jpg|\.gif|\.png)$ - [L]

to

Code: Select all

RewriteRule ^.*(\.htm|\.xml|\.css|\.js|\.jpg|\.gif|\.png)$ - [L]

sohotech

Re: [Zen Cart] Old links 404 errors

Postby sohotech » Mon Jun 08, 2009 2:17 am

From the Zencart features on your website it says the following:

"safe changing of URLs and re-directions from all native and rewritten ZenCart URLs"

why do i have to change the .htaccess file if this feature is already supported?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Old links 404 errors

Postby inveo » Mon Jun 08, 2009 2:37 am

You have to change the .htaccess file, because none knows what Rewrite Rules you have been using. If you place your old Rewrite Rules, MSU automatically recognize what to do.