Re: [us...@httpd] mod_rewrite, passing GET variables forward

2009-01-11 Thread Kae Verens
Bob Ionescu wrote: 2009/1/11 Kae Verens : I want to rewrite /foo?bar=red to /index.php?page=foo&bar=red I try it with this, but it does not work: RewriteRule ^(.*)\?(.*)$ /index.php?page=$1&$2 [L] The query string is not part of the rule-patern as described in the manual

[us...@httpd] mod_rewrite, passing GET variables forward

2009-01-11 Thread Kae Verens
hi all, I want to rewrite /foo?bar=red to /index.php?page=foo&bar=red I try it with this, but it does not work: RewriteRule ^(.*)\?(.*)$ /index.php?page=$1&$2 [L] however, if I instead use an ampersand: RewriteRule ^(.*)\&(.*)$ /index.php?page=$1&$2 [L] I can rewrite /foo&bar=red to /index.php?p

Re: [EMAIL PROTECTED] files ending with '.' treated as if the '.' is not there

2008-10-13 Thread Kae Verens
Eric Covener wrote: manual for mod_mime describes this interaction between multiple extensions (all of which are considered) and AddHandler http://httpd.apache.org/docs/2.2/mod/mod_mime.html#multipleext thanks. that's a good workaround. kae -

Re: [EMAIL PROTECTED] files ending with '.' treated as if the '.' is not there

2008-10-13 Thread Kae Verens
Kae Verens wrote: For example, 'test.php.' will be run as if it is a PHP file. I don't have MultiViews enabled. In fact, to be sure, I specifically disabled it. that thought did occur to me, though. I haven't coded in C/C++ in over 10 years, but I'll try did through

Re: [EMAIL PROTECTED] files ending with '.' treated as if the '.' is not there

2008-10-13 Thread Kae Verens
Eric Covener wrote: On Mon, Oct 13, 2008 at 5:15 AM, Kae Verens <[EMAIL PROTECTED]> wrote: Morning all, first post from myself. If you have PHP, Perl or plain old CGI installed, and set up Apache to recognise these files with the extensions '.php', '.pl' or &#x

[EMAIL PROTECTED] files ending with '.' treated as if the '.' is not there

2008-10-13 Thread Kae Verens
Morning all, first post from myself. If you have PHP, Perl or plain old CGI installed, and set up Apache to recognise these files with the extensions '.php', '.pl' or '.cgi', Apache will recognise the files even if the filename has a '.' at the end. For example, 'test.php.' will be run as if