Forum Moderators: phranque
I've seen a lot of posts that do rewrite parameters to folders however I'm looking for the other thing.
E.g. a user enters [domain.com...]
How can I make it on the server to be read as [domain.com...]
Of course the number of parameters appeneded should be dynamically enhanced according to the number of subfolders.
Or would it be better just make a global rewrite for all .php documents to [domain.com...] and then use the referer?
The server is not under heavy load but I'd just like to have things as dynamically as possible.
Welcome to WebmasterWorld [webmasterworld.com]!
Actually, rewriting from a static URL to a dynamic URL with paramaters is the more usual case, and doing a search here on WebmasterWorld turned up this recent thread [webmasterworld.com], which covers several of the concepts you'll need to know.
For a more general introduction and links to mod_rewrite and regular expressions documentation, see our Introduction to mod_rewrite [webmasterworld.com]
If you have any trouble with your code, post it, and we'll try to help you out.
Jim