[Zen Cart] 301 redirect confusion

Custom URLs and redirections.
rginn
Posts: 13
Joined: Wed Jun 02, 2010 6:53 am

[Zen Cart] 301 redirect confusion

Postby rginn » Thu Oct 21, 2010 6:19 am

(Zen-Cart)
Hi,

It’s very obvious to me that I’m no magician, but I dont quite understand what is going on.I tried dozens, maybe even hundreds of different ways to get product pages to redirect with total failure. Even what worked before, isn’t working now. Take this product for instance, and the way the rewrite/redirect rule that worked before:
redirect 301 /heart-tag-necklace-113 http://www.lasercraftstudios.com/personalized-heart-tag-necklace-113.html

which last time(s) worked just fine......until Magic overwrote the whole .htaccess file. Now, since I’ve got Magic to stop overwriting the file, it STILL over-rides any redirect I put in there by adding additional information. So, the url that you see above SHOULD come out to be:
http://www.lasercraftstudios.com/personalized-heart-tag-necklace-113.html

But, Magic is over-riding that to look like:

http://www.lasercraftstudios.com/personalized-heart-tag-necklace-113.html?main_page=index&cPath=113&sort=20a

Now, you take the exact same product, and in Google it’s got the old sites’ index as:

http://www.lasercraftstudios.com/heart-tag-necklace-113 (without the .html)

If you add the .html to that, the product shows just fine. So, all in all, if Magic wouldn’t add the .html onto the pages of this new site, then about 90% of my dead links would work just fine, as that .html is the only difference between the old and the new.

And I just DO NOT understand it’s workings enough to correct what it’s screwing up,
but this one’s got me yelling “Uncle”

I hope someone can help as I really need to get this done.

Regards
Bob
Magic SEO URLs for Zen Cart

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

Re: [Zen Cart] 301 redirect confusion

Postby inveo » Sat Oct 23, 2010 1:47 pm

First of all, this question is not related to Magic SEO URL, but just to general understanding how Rewrite Rules and redirect works in .htaccess file.

rginn wrote:It’s very obvious to me that I’m no magician, but I dont quite understand what is going on.I tried dozens, maybe even hundreds of different ways to get product pages to redirect with total failure. Even what worked before, isn’t working now. Take this product for instance, and the way the rewrite/redirect rule that worked before:
redirect 301 /heart-tag-necklace-113 http://www.lasercraftstudios.com/personalized-heart-tag-necklace-113.html


If you change your Magic SEO URL setup to not add ".html" extension and want to redirect old URI to new format, all you need to do is generate .htaccess file content with Magic SEO URL configured to include ".html" extension then revert this setup and merge both .htaccess contents and (Rewrite Rules generated with actual setup place to the top of this file).

Get Em Fast
Posts: 1
Joined: Thu Oct 28, 2010 9:43 pm

Re: [Zen Cart] 301 redirect confusion

Postby Get Em Fast » Fri Oct 29, 2010 8:54 am

So, just how do you make Magic SEO generate the .htaccess file to NOT include the .html extension?

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

Re: [Zen Cart] 301 redirect confusion

Postby inveo » Fri Oct 29, 2010 2:00 pm

By adjusting settings in includes/msu_tweak.ini file.


Return to “Custom Rewrite Rules”

Who is online

Users browsing this forum: No registered users and 0 guests