mod_rewrite voodoo.
I'm trying to do web stuff pretty much for the first time and I'm trying to get something working which I believe can be done but which I can't seem to get to work.
What I want to do is take a fake directory/file, strip it from the url for the requested page, but have the original unaltered url be passed to a php script.
e.g.
Request sent: mysite.bot/dir?thingy=thing1&bitty=bit2
or: mysite.bot/dir/?thingy=thing1&bitty=bit2
Page requested: mysite.bot/?thingy=thing1&bitty=bit2
What php sees: mysite.bot/dir?thingy=thing1&bitty=bit2
or: mysite.bot/dir/?thingy=thing1&bitty=bit2
This is all so I can determine exactly what content is put up based on the URL without resorting to subdomains.
My RegExpFu is rusty as all else so any pointers would be much appreciated.
What I want to do is take a fake directory/file, strip it from the url for the requested page, but have the original unaltered url be passed to a php script.
e.g.
Request sent: mysite.bot/dir?thingy=thing1&bitty=bit2
or: mysite.bot/dir/?thingy=thing1&bitty=bit2
Page requested: mysite.bot/?thingy=thing1&bitty=bit2
What php sees: mysite.bot/dir?thingy=thing1&bitty=bit2
or: mysite.bot/dir/?thingy=thing1&bitty=bit2
This is all so I can determine exactly what content is put up based on the URL without resorting to subdomains.
My RegExpFu is rusty as all else so any pointers would be much appreciated.
