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? 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 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 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. 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
Archived
This topic is now archived and is closed to further replies.