I need a rewrite rule that will do an internal redirect from:
<domain>/directory/<anything>/<anything>.php
to:
<domain>/directory/<anything>.php
with <anything>
passed as a parameter, and it needs to leave all other parameters alone.
I get headaches from mod_rewrite. My issue is <anything>.php
, I cannot find any examples for anything like that.
Example: domain.com/directory/something/lol.php?param=value ought to internally redirect to domain.com/directory/lol.php?param=value&someotherparam=something
Thanks for the help! I have read through many tutorial sites, but I am in the dark here...
EDIT: Code tags added since it wasnt showing up properly >.>
Not all pages will have other parameters passed, some might have only one, some might have many. This is another bit that confuses me...