rewrite rule in htaccess
HI:
I would like to prettify my url
from
www.mysite.com/recipes/view_recipe?id=somenumber&page=recipe-name
to
www.mysite.com/recipes/view_recipe/somenumber/recipe-name
My htaccess file show the following codes:
suPHP_ConfigPath /home/myusername/public_html
Options +FollowSymlinks
RewriteEngine on
order allow,deny
deny from all
# and if filename extension with .php is appended is good KEEP the 2 lines
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule (.+) /$1.php
#from http://www.generateit.net/mod-rewrite/index.php
RewriteRule ^([^/]*)/([^/]*)\.html$ /view_recipe?id=$1&page=$2 [L]
# this last line should prettify my urls and it does not.
# I have tried numerous combinations without any success.
The htacess file does not render any error and does not change the urls
Hope you can help me to resolve this request.
thank you