rewrite rule problem
Posted: Sun Aug 30, 2009 4:31 am
Hi
I use this rule:
to redirect
domain.com/restaurants/state/city/12542-restaurant_name/
to
domain.com/restaurants.php?rid=12542
But I get 500 Internal Server Error
Where I am wrong?
Thank you for your help
Also tried this rule:
I use this rule:
Code: Select all
RewriteRule ^restaurants/([^/\.]+)/([^/\.]+)/([0-9]+)(.*)/ $ project/food/restaurentProfile.php?rid=$3domain.com/restaurants/state/city/12542-restaurant_name/
to
domain.com/restaurants.php?rid=12542
But I get 500 Internal Server Error
Where I am wrong?
Thank you for your help
Also tried this rule:
Code: Select all
RewriteRule ^restaurants/([^/\.]+)(.*)/([^/\.]+)(.*)/([0-9]+)(.*)/ $ restaurentProfile.php?rid=$5