I'm trying to rewrite a URL to make it more SEO friendly. I have tried many different rewrite rules but can't seem to get it working properly.
Here is what I'm trying to do. I would like to rewrite a URL like this:
The values of firstname, lastname, city, state, usernum amd photo number up until the C.jpg will be variable.
Here is another example:
I would like to use Apache rewrite to strip out everything between /photos/ and 123.456.789C.jpg and replace the dots (periods) between 123,456 and 789 with / .
So I want the rewrite to look like this:
Additional info: the last 9 digits before the "C.jpg" will always be 9 digits (ie. 123.456.789)
Any help will be greatly appreciated!!