1

For whatever reason, Google is attempting to crawl URL strings associated with the voting feature on my site. Google finds errors and shows these in Webmaster Tools. I'd like to create a catch all 301 rule that resolve to the URL featuring the voting.

So these:

(dapplegray.php represents the page name, 1-5 being the vote values).

..would resolve to: http://bussongs.com/songs/dapplegray.php

1 Answer 1

1

You can use this RedirectMatch rule as your first rule:

RedirectMatch 301 ^/vote/dapplegray\.php/ /songs/dapplegray.php
2
  • Thank you @anubhava! And as a catchall for songs on the site (ie. where dapplegray.php could be anything.php), it'd be something like this: RedirectMatch 301 ^/vote/(.+?)(-[0-9]+)?$ /songs/$1 Feb 18, 2014 at 14:09
  • Yes that should work though I don't know all the details of those URLs. Let me know if you run into any problems.
    – anubhava
    Feb 18, 2014 at 15:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.