willdk Posted April 7, 2009 Share Posted April 7, 2009 I have urls like http://www.domain.tld/search.php?q=microsoft+software Now I want every url with 'microsoft' to redirect (301?) automatically to http://www.domain.tld/ In the future I want to add more words. I have found this... Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] Anyone with a solution, please? Quote Link to comment https://forums.phpfreaks.com/topic/152999-htaccess-redirect-alle-urls-with-this-keyword/ Share on other sites More sharing options...
Brian W Posted April 7, 2009 Share Posted April 7, 2009 This should be under: Forums -> Apache HTTP Server -> mod_rewrite Quote Link to comment https://forums.phpfreaks.com/topic/152999-htaccess-redirect-alle-urls-with-this-keyword/#findComment-803585 Share on other sites More sharing options...
willdk Posted April 7, 2009 Author Share Posted April 7, 2009 This should be under: Forums -> Apache HTTP Server -> mod_rewrite I see that a mod have this topic moved to the right forum. Thx Quote Link to comment https://forums.phpfreaks.com/topic/152999-htaccess-redirect-alle-urls-with-this-keyword/#findComment-803596 Share on other sites More sharing options...
willdk Posted April 9, 2009 Author Share Posted April 9, 2009 So, this is not possible? I couldn't find any information on how to do this. Quote Link to comment https://forums.phpfreaks.com/topic/152999-htaccess-redirect-alle-urls-with-this-keyword/#findComment-805730 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.