I use htaccess for make mu URL clean. My original ULR is http://localhost/bookStore/single_book.php?name=This%20is%20book%20no%204
i use php urlencode() function to make this
http://localhost/bookStore/single_book.php?name=This+is+book+no+4
but now i want to make this like:
http://localhost/bookStore/single_book/This+is+book+no+4
using htaccess
RewriteRule ^single_book/([0-9a-zA-Z_-]+) single_book.php?name=$2 [NC,L]
RewriteRule not working