Forum Moderators: phranque
I am displaying the page:
[domain.com...]
...and want to display the dynamically generated page:
[domain.com...]
{REQUEST_URI} = red.html, but I want just "red". I have a hunch that backreferences could help?
Regards,
Ian Tresman
Welcome to WebmasterWorld [webmasterworld.com]!
The problem can be broken down into two parts: First, you need to unambiguously recognize requests for /red in the proper position in the requested URL, and second, you need to rewrite that URL so that it references your find.php script with the appropriate query string taken from a back-reference to the original URL.
The first part is accompished by using regular-expressions pattern matching on the requested URL, and the second part is accomplished by the URL-rewriting functions of RewriteRule. I have posted some references at the end of our charter [webmasterworld.com] that may be useful to you.
Jim