Question : htaccess modrewrite Urls

I need to know how do i get this list of rules to work. I don't understand mod_rewrite so keep it simple please.

I know i write the new urls like this and it will go to the dynamic url. The first one is working but when i write the others they all go to the first one and i don't know why? Grrrrrrrrrr

I need all the url rules but not sure how the should be laid out... Please help

List below:
RewriteEngine on

RewriteRule ^Driving_Instructors/(.*)/(.*)/(.*)/(.*)/(.*)/$ /Driving_Instructors/Sponsors.php?ADI=$1
RewriteRule ^Driving_Instructors/Driving_Instructors_Categories/(.*)/(.*)/(.*)/(.*)/(.*)/$ /Driving_Instructors/Categories/Categories.php?ADI=$1
RewriteRule ^Driving_Instructors/Driving_Instructors_feedback/(.*)/(.*)/(.*)/(.*)/(.*)/$ /Driving_Instructors/Driving_Instructors_feedback/Feedback.php?ADI=$1
RewriteRule ^Driving_Instructors/Driving_Instructors_Testimonals/(.*)/(.*)/(.*)/(.*)/(.*)/$ /Driving_Instructors/Driving_Instructors_Testimonals/Testimonals.php?ADI=$1
RewriteRule ^Driving_Instructors/Driving_Instructros_Contact_Details/(.*)/(.*)/(.*)/(.*)/(.*)/$ /Driving_Instructors/Driving_Instructros_Contact_Details/Contact.php?ADI=$1

thanks to all

Answer : htaccess modrewrite Urls

The reason is that .* matches everything, so the first rule expects /Driving_Instructors/<anything>/<anything>/<anything>/<anything>/<anything> and gets exactly that (anything matches Driving_Instructors_Categories etc)

Move the first rule down all the way and it should work fine.
Random Solutions  
programming4us programming4us