Google Ranking

My head is about to burst!!!:confused:



I have followed all the various different threads and suggestions, but can someone please explain why this inserted into .htaccess file doesn’t work



RewriteEngine on

RewriteCond %{query_string} madhousedarts.co.uk/products/Phase_1_World_Champion_Tungsten_Darts_Phil_Taylor-987-25.html

RewriteRule (.*) [url]http://www.madhousedarts.co.uk/darts-steel-tip/unicorn-darts/phase-1-world-champion-tungsten-darts-phil-taylor-10169.html[/url] [R=301,L]



We have dropped from 2000 impressions a day to just 35 due to 404 page not found!!



Thanks

[quote name=‘The Joker’]My head is about to burst!!!:confused:



I have followed all the various different threads and suggestions, but can someone please explain why this inserted into .htaccess file doesn’t work



RewriteEngine on

RewriteCond %{query_string} madhousedarts.co.uk/products/Phase_1_World_Champion_Tungsten_Darts_Phil_Taylor-987-25.html

RewriteRule (.*) [url]http://www.madhousedarts.co.uk/darts-steel-tip/unicorn-darts/phase-1-world-champion-tungsten-darts-phil-taylor-10169.html[/url] [R=301,L]



We have dropped from 2000 impressions a day to just 35 due to 404 page not found!!



Thanks[/QUOTE]



Heres few samples


[QUOTE]RewriteCond %{REQUEST_URI} ./page-one.html

RewriteRule ^.
$ [url]http://www.domain.com/page-one/[/url] [L,R=301][/QUOTE]



also


[QUOTE]Redirect 301 /catalog/ [url]http://www.domain.com/[/url][/QUOTE]



these are just samples, no expert, copy paste programmer :slight_smile:

Darius based on your comments I modified the .htaccess file with:



RewriteCond %{REQUEST_URI} ./products/Phase_1_World_Champion_Tungsten_Darts_Phil_Taylor-987-25.html

RewriteRule ^.
$ http://http://www.madhousedarts.co.uk/darts-steel-tip/unicorn-darts/phase-1-world-champion-tungsten-darts-phil-taylor-10169.html [L,R=301]



404 page not found



and



Redirect 301 /products/ [url]http://www.madhousedarts.co.uk/[/url]



404 page not found



Is the detail I’m putting in correct or not?

something else that I have just noticed is:



the sitemap shows a links like this:



[url]http://www.madhousedarts.co.uk/personalised-products/personalised-darts-shirt-pds-001.html[/url]



however the website adds this:



[url]http://www.madhousedarts.co.uk/personalised-products/personalised-darts-shirt-pds-001[/url][COLOR=“Red”]-en[/COLOR].html



why?

as far as I understand you need only this



Redirect 301 /catalog/ [url]http://www.example.com/[/url]



that is if you had



catalog/product.html

and now

/product.html



This may sort only products but not categories.



Older cs-cart versions did not like this way of redirect “redirect 301” and resulted in link with attached “/?sess_id=???”



You may also try



RedirectMatch 301 ^/catalog/$ http://www.example.com

As far as I can see and understand I am adding the ‘old’ as per details and ‘new’ as per details, but it ain’t working, which is so frustrating.



Old link:

[url]http://www.madhousedarts.co.uk/products/Phase_5_Tungsten_Darts_Phil_Taylor-53-11.html[/url]



New link:

[url]http://www.madhousedarts.co.uk/darts-steel-tip/unicorn-darts/phase-5-tungsten-darts-phil-taylor-10942.html[/url]



So this should work:



RewriteEngine on

RewriteCond %{query_string} madhousedarts.co.uk/products/Phase_5_Tungsten_Darts_Phil_Taylor-53-11.html

RewriteRule (.*) [url]http://www.madhousedarts.co.uk/darts-steel-tip/unicorn-darts/phase-5-tungsten-darts-phil-taylor-10942.html[/url] [R=301,L]



But it don’t?

Why are you using query string? It is what’s after the ‘?’ in the URL.



Suggest you do some more research about what you’re trying to accomplish. A link that might help you is:

[url]http://httpd.apache.org/docs/2.0/misc/rewriteguide.html[/url]

What l’m trying to achieve is a 301 redirect for an old link from our previous cart to new location in our cs cart as minimise the impact on our Google ranking

So go look up how Rewrite rules work. There is plenty of documentation that exists. You could have read appropriate docs via Google search in less time that you’ve spent posting here.

I’ve spent last few days search n reading about it non of it works.

I thought someone on here would know since the vast majority of cs cart users will have been in the same boat at sometime or other.

But you’re not following the directions given!

Darius gave you examples using %[REQUEST_URI] and you changed it to using $[QUERY_STRING] and then you wonder why it doesn’t work.



You can find thousands of examples in Google and the link I gave you gives both and overview and examples.



Rewrite rules do work but you either need to know what you’re doing or follow the directions provided.



I don’t claim to be a RewriteRule person at all so that’s why I don’t give you examples.

Looks like we have this sorted now, thanks

Google ranking is not needed outside the chain of high quality, work