[Zen Cart] 301 redirects

Custom URLs and redirections.
makenoiz
Posts: 6
Joined: Mon Mar 01, 2010 6:59 pm

[Zen Cart] 301 redirects

Postby makenoiz » Wed Feb 16, 2011 1:41 pm

In order to get a 301 redirect, I just want to make sure that I can safely add the the end of the generated .htaccess file my own rule such as (Ill reset permissions to read only after I change):

Code: Select all

RewriteCond %{QUERY_STRING} ^main_page=unsubscribe&addr=&action=unsubscribe$ [NC]
RewriteRule (.*) http://mydomain.com/index.php?main_page=myCustom_unsubscribe [R=301,L]


Thank you

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

Re: [Zen Cart] 301 redirects

Postby inveo » Wed Feb 16, 2011 2:11 pm

Yes. You can add any Rewrite Rules to the .htaccess file.

jeking
Posts: 14
Joined: Fri Feb 08, 2008 7:25 pm

Re: [Zen Cart] 301 redirects

Postby jeking » Wed Jun 29, 2011 1:11 pm

I had the same question but not as skilled at rewrite rules.

I'm discontinuing a product and want all inbound links to redirect to it's replacement.

I entered the following at the end of my htacess file but it's not working. I'm getting an error about infinite redirects. What did I do wrong?

redirect 301 /photo-beach-towels-2/personalized-beach-towels-3/woven-photo-beach-towel-6.html /photo-beach-towels-2/personalized-beach-towels-3/full-color-photo-beach-towel-1222.html

jeking
Posts: 14
Joined: Fri Feb 08, 2008 7:25 pm

Re: [Zen Cart] 301 redirects

Postby jeking » Tue Jul 05, 2011 8:44 pm

Bump.