Post a little more info, like what URL you are testing, what path your .htaccess is under and path to buy.php
domain.com/buy/hello would work with his current rewrite, but since he says it's not working he must be trying something else or his server doesn't allow rewriting.
Thanks for the reply guys. When I goto my homepage And in the box type any word then when I press SUBMIT. The page does not come up.
mrmonster is right, your current rewrite is missing the FollowSymLinks option. So here is the working one: Options FollowSymLinks RewriteEngine On RewriteRule ^buy/(.*)$ buy.php?word=$1 [L] Code (markup):
are you adding a / after the last word? buy/something/ ? RewriteEngine On RewriteRule ^buy/(.[^/]+?)/?$ buy.php?word=$1 [L] Code (markup):
Check if your server has rewrite enabled, do a phpinfo() and search for mod_rewrite It's starting to sound like it's not enabled or you are trying something other than what you are typing out here.
save this in a file called modcheck.php <?php $a = apache_get_modules(); echo (in_array("mod_rewrite",$a)) ? "enabled" : "disabled"; ?> PHP: let us know the output.