Forum Moderators: phranque

Message Too Old, No Replies

Rewrite Folders to Parameters

         

sjau

9:32 am on Jan 2, 2004 (gmt 0)

10+ Year Member



Hello,

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.

jdMorgan

6:34 pm on Jan 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sjau,

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

sjau

7:28 pm on Jan 2, 2004 (gmt 0)

10+ Year Member



Dear jdMorgan,

thanks for that reply. As said before when I was searching I found only threads that will convert parameters into a virtual file system.

sjau