Tuesday, March 20, 2012

Re: Redirect From Old Ecommerce Site To New Ecommerce Site

.htacess is realy eay to do, just read on it and try doing simple 301's 302's for fun just to see if you can do it. .htaccess is very easy and is what controls google bot for you and tells it what to do

On Tue, Mar 20, 2012 at 2:46 PM, Wallaby <ian@write-research-office.com> wrote:

Thanks everyone for your replies.
This is what I have done to get out of doo doo. I added ErrorDocument
404 /index.php to .htaccess
What that does is points all bad url to the home page. This got rid of
all 404 errors but it does not help with permanent redirects.

I want to do a bit more.

The old url and the new url are completely different because of
different databases. I have no access to the old server because the
host reseller did a runner :) Any suggestion of accessing the old host
server is out of the question.
Because the url's are different, I cannot do a straight rewrite rule
so I need to be a bit more creative but am having syntax problems.

The site is jewelry and categorized as necklace, bracelet, earings
etc.
I am looking for a way to take any file that has one of those category
names in the url and redirect it to a specific url. For instance, an
old url with the word "earring" in it would redirect to http://myurl/earrings.php

What I have tried is,
Redirect ^.*(earrings).* $ http://myurl/index.php?main_page=index&cPath=103_104
[R,NC
]

What this SHOULD do, is collect all characters then the word earrings
then any other characters and send them to a category list for
earrings. The problem here is that it wants rewrite those characters
into the new url.

I want to discard those characters and only use the word earrings.

Anyone got good htaccess knowledge?

thanks for your help

--
You received this message because you are subscribed to the Google Groups "Google Search Engine Optimization SEO Google - MSN - Yahoo" group.
To post to this group, send email to seo1@googlegroups.com.
To unsubscribe from this group, send email to seo1+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/seo1?hl=en.


--
You received this message because you are subscribed to the Google Groups "Google Search Engine Optimization SEO Google - MSN - Yahoo" group.
To post to this group, send email to seo1@googlegroups.com.
To unsubscribe from this group, send email to seo1+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/seo1?hl=en.

No comments:

Post a Comment