thryb Posted September 8, 2007 Share Posted September 8, 2007 What is wrong in this ? RewriteEngine On RewriteRule ^search/(.*)$ search.php?cmd=search&words=$1 [L] I want my url to be something like www.domain.com/search/wordsearched Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/68447-problem/ Share on other sites More sharing options...
hackerkts Posted September 8, 2007 Share Posted September 8, 2007 Try to remove the [L], btw.. What's the error shown? Make sure you have your mod_rewrite module on.. Quote Link to comment https://forums.phpfreaks.com/topic/68447-problem/#findComment-344170 Share on other sites More sharing options...
thryb Posted September 8, 2007 Author Share Posted September 8, 2007 My module is on yes but when I call the URL, it just stay as the normal http://domain.com/search.php?cmd=search&words=general No error Quote Link to comment https://forums.phpfreaks.com/topic/68447-problem/#findComment-344325 Share on other sites More sharing options...
hackerkts Posted September 9, 2007 Share Posted September 9, 2007 What do you mean by it stay at the normal? Your static URL is http://domain.tld/search/something, that's the URL you should be accessing.. Quote Link to comment https://forums.phpfreaks.com/topic/68447-problem/#findComment-344612 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.