hi how to redirect url that contains certain keywords using htaccess ex: -www.website.com/keyword/ -> redirects to www.website.com -www.website.com/keyword1keyword2/ ->redirects to www.website.com Code (markup):
It depends. If your keyword is "static" (I mean you only want to redirect keywords that you already know), something like RewriteRule /keyword/ http://www.website.com Code (markup): should work. If you need to redirect keywords based on some rule (like keyword contains a specific letter or symbol, etc.), just use preg_match on the rule above.