Originally Posted by a4udi
Thanks for having a look. This is similar to something I had working before, it is doing the rewrite properly in the browser address bar, but it goes to a blank page. So I'm not sure if it's not pointing to the write page or what.
I think my problem was the fact it has the "?" and "&" in the url string... not sure if the code above accounts for that?
The code assumes an origin URL http://example.com/results.php?&secondary=2 with the part after "http://example.com/" requiring an exact match (including the superfluous ampersand).
It redirects to http://example.com/cars/ford. Of course, for this to work, there has to actually be something at that URL; this isn't simply a URL transform. You'll need a file or folder named "ford" in a "cars" directory. In the case of a folder, a default file will need to be present, and you'll need another
to ensure that index.html, default.html, etc. can't appear in the URL.