redirect a search URL

Highlighted
New Member
4 0 0

I need to redirect a URL that looks like this:

/collections/vendors?q=aspect+dr

because robots.txt is blocking Google from searching this, which is a great shame because users see this in Google search:

Aspect Dr - Victorian Cosmetic Institute Online Skincare

shop.vci.com.au/collections/vendors?q=aspect+dr
A description for this result is not available because of this site's robots.txt – learn more.

and that search result is actually very high for keywords we are interested in.

(this URL is in Google because the landing page is full of URLs made with the URL_for_vendor filter )

robots.txt is blocking it because the space in the vendor name appears to be two tags to the very simple rule in robots.txt, and that's blocked. This robots.txt problem is very annoying because it seems unavoidable if URL_for_vendor is used when combined with vendors which dare to have spaces in their name.

I tried redirecting it to the appropriate custom collection but the redirect is ignored. 

i.e. 

/collections/vendors?q=aspect+dr 

redirected to

http://shop.vci.com.au/collections/aspect-dr

but this is not working.

Meanwhile I am trying to get google to crawl to the custom collection page via (a) submittings its URL and (b) making a link in navigation to the custom URL, but nothing is displacing the search result above. So a bit of a dilemma; if I force out the bad URL from google via webmaster tools I don't know what I'll be left with. 

 

 

0 Likes
Highlighted
New Member
2 0 0

You could use a canonical tag in the <head> section of search pages and set it as the correctly formatted URL. Another suggestion is to try replacing spaces by '%20'.

0 Likes