You should always try to build your own sites. Using other people's databases and logic gets you into situations where you have no control.
I know little about Linux but when you redirect to the home page your should log the referring URL so you can make a 301 redirect for that specific URL. Are you using 301 or 302 to redirect to the home page?
On Mar 20, 2012 12:10 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