mod_rewrite (with tenuous link to PHP)
Any of you guys out there mod_rewrite gurus? I know this is a tad off-topic, and I apologise.
I currently have a website that takes a URL of the form...
http://my.domain/?var1=value1, or
http://my.domain/?var1=value1&var2=value2
What I would like is to be able to call up these pages, as follows:
http://my.domain/value1/, or
http://my.domain/value1/value2/
... and behave (transparently) as if the first format was used... i.e. passing $var1 and $var2 into PHP.
What I'd also like to do, at the same time, is specify a number of top level directories that I want treated as directories... i.e: http://my.domain/static/ to actually reference that physical location, and not http://my.domain/?var1=static
Oh, and this needs to be done through .htaccess only.
Any ideas?
Cheers :o)
I currently have a website that takes a URL of the form...
http://my.domain/?var1=value1, or
http://my.domain/?var1=value1&var2=value2
What I would like is to be able to call up these pages, as follows:
http://my.domain/value1/, or
http://my.domain/value1/value2/
... and behave (transparently) as if the first format was used... i.e. passing $var1 and $var2 into PHP.
What I'd also like to do, at the same time, is specify a number of top level directories that I want treated as directories... i.e: http://my.domain/static/ to actually reference that physical location, and not http://my.domain/?var1=static
Oh, and this needs to be done through .htaccess only.
Any ideas?
Cheers :o)
