How would I write a .htaccess redirect rule if the URL contains a certain word?
.htaccess
e.g. if it contains foobar then redirect to index.php
foobar
index.php
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^/foobar/i$ index.php [NE,L]