Claudiu
Claudiu

Reputation: 4109

How to block redirect search in robots in wordpress

In my wordpress site I've redirected my search from

domain.com/?s=search_term

to

domain.com/search/search_term




In robots.text should I change ?

Disallow: /*?

to

Disallow: /search/




How can I test that is working properly ?

Upvotes: 0

Views: 67

Answers (1)

Jim Mischel
Jim Mischel

Reputation: 133995

If you want to disallow search then, yes, you should have the line:

Disallow: /search/

Google's Webmaster tools has a robots.txt checker. You can use that to test your robots.txt file for validity.

Upvotes: 1

Related Questions