Good morning!
I have numerous pages with URLs like
http://example.com/sub/dir/index.php?param=val&var=value
or even
http://example.com/sub/dir/?param=val&var=value
that I can happily rewrite as
http://example.com/sub/dir/index.php/val/value
but that's not enough :-) I would like to have the best of both and have
http://example.com/sub/dir/val/value
and have the index.php put back in for me. Another alternative is
http://example.com/sub/dir/ih/val/value
since that's still shorter. [I would use just 'i' but I may also have index.pl or index.rb and so I am defining a 2nd character for script language identification.] I am, however, being kicked in the teeth by mod_rewrite! I've written some basic tests to prove that mod_rewrite is loaded and functional, and I have been through the documentation and the tutorials and keep thinking I'm getting close, but I've gotten nowhere.
My test platform is Apache 2.2 under WAMP; my prod platform is Apache 1.3 under FreeBSD. I have access to the httpd.conf file in both cases and would like to have just a single rule or two for each index case rather than throwing .htaccess files all over the place. Can anyone give me any pointers?
TIA & HAND
:-D
--
David T-G
http://justpickone.org/davidtg/email/