I would like all the URLs of the following format:
mysite.com/xyz to display:
mysite.com/show.php?keyword=xyz How can I do this?
it should work if you put this in .htaccess (given that mod_rewrite has been enabled on your webserver and you have the right to use it):
RewriteEngine On RewriteRule ^/xyz$ /show.php?keyword=xyz [R=302,L] RewriteRule ^/([a-zA-Z]*)$ /show.php?keyword=$1 [R=302,L] work?