0

I want to convert url using GET method from

http://localhost/demo/index.php?keyword=sap&Submit=Search

TO

http://localhost/demo/sap

but i am getting problem in rewriting url i.e unable to rewrite url to

http://localhost/demo/sap

i have written my htaccess as

RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?keyword=$1


Please help me to get the proper htaccess code...

Thankyou

<form name="frmSearch" method="GET" action="">
		 
		<div class="input">
			<label for="SearchKeyword">Search Results:</label>
			<input name="keyword" id="SearchKeyword" type="text" value="<?php echo $_GET['keyword']; ?>">
		</div>
		<div class="submit">
			<input value="Search" type="submit" name="Submit">
		</div>
	</form>
2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by arunss
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.