htaccess redirect if URL contains a certain string

Viewed 129721

How would I write a .htaccess redirect rule if the URL contains a certain word?

e.g. if it contains foobar then redirect to index.php

4 Answers
Related