First, I want to thank you for this very good forum.
I've searched around old post to figure out my problem, i tried a lot of thinks but i didn't find the solution.
I'm a poor reg exp coder that's why i'm asking you. I want to rewrite urls in this way :
- Code: Select all
index.php -> /
index.php?profile -> /profile/
index.php?profile=Some+User -> /profile/Some User/
index.php?profile=Some+User&show=gallery -> /profile/Some User/gallery/
index.php?profile=Some+User&show=gallery&ajax -> /profile/Some User/gallery/ajax/
index.php?inbox -> /inbox/
index.php?inbox=compose -> /inbox/compose/
index.php?inbox=read&id=11 -> /inbox/read/11/
index.php?inbox=read&id=11&ajax -> /inbox/read/11/ajax/
Is it possible to have a reg exp that do all those things or do I have to map urls with an external file or script ?
Thank you again. Have a good day.