mod_rewrite problem

Hi guys

I am new to using mod_rewrite, but need it for a project I am currently working on.

From what I have researched so far, I have a page which looks like this:

Using mod_rewrite I can change the page to look like this …

The code I am using, I have put in the “ford” folder, and looks like this:-

RewriteEngine On
RewriteRule ^Escort([^/]*).html$ types.php?type=$1


This all works great, but I have many brands of cars within the folders.

How do I make it so type=$1 is the page name instead of Escort.html

Hope someone can help me?


Never mind figured it out!

RewriteRule ^([^/]+).html$ types.php?type=$1 [L]

Thanks anyway!