Simple mod_rewrite Question
- by user5358
Hello,
I want to have everything that looks like this:
/1/2/3/4/5/[...]
to redirect to this:
/index.php?u=/1/2/3/4/5/[...]
unless the requested string is a specific file. So anything that doesn't have a ".", I want to redirect to "index.php?u=[...]". I'll then parse the URI segments in PHP to determine what the user is requesting.
I've been looking around for how to do this, but have only a very rough understanding of regular expressions and have been unable to find an example of how to do it.
Thanks!