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_URI} foobar RewriteRule .* index.php
or some variant thereof.
1.4m articles
1.4m replys
5 comments
57.0k users