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