> okay, i swear, this *must* be a FAQ. :-) I looked on php.net's FAQ and
> php.faqts.com, but couldn't find it.
Ah, but did you check the Mailing List archives?
Though, I must admit, figuring out what to use for a search term is kinda
tough for this one...
> How do I use slashes to delimit query string (url) paramters?
>
> i.e., I want
> http://foo.com/name/paul
> instead of
> http://foo.com/?name=paul
Use mod_rewrite
There's an article on phpbuilder.com (?) about it. A 'Net search of "PHP
and Rewrite" should turn it up.
The Apache docs by Ralf Engelshall (sp?) are *excellent*, especially the
samples.
[Actually, his docs on SSL are also most excellent as well :-)]
*TIP*:
You *WANT* to use RewriteLogLevel 9 and RewriteLog
/some/path/you/can/find/rewrite.log, and you *WANT* to use tail -f on that
sucker while you are figuring out what the heck these rewrite rules are
doing. Any other attempts at analysis will leave you with a headache.
Promise.
I repeat: LOOK AT THE LOG FILE FOR REWRITE. IT TELLS YOU WHAT'S GOING ON.
IN DETAIL.
*TIP*:
There's some stuff in those docs about being in "directory" (.htaccess) and
"non-directory" status. I found those particular statements rather...
obtuse. :-) Translation: Sometimes you need %{DOCUMENT_ROOT} in your
RewriteCond and/or RewriteRule, and sometimes you don't. It depends on if
you are inside a <Directory> directive in httpd.conf (or in .htaccess file)
or if you are just hanging loose in the "top-level" of your httpd.conf file.
If your rules aren't firing (or fire too often), it's because you ain't got
that path right, almost for sure. Apache/Rewrite is not going to "fill in"
the path for you. Except when you're in a <Directory> section or .htaccess
where it is going to fill it in :-)
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]