|
Home > Archive > Apache Server configuration support > February 2006 > need help with a mode_rewrite rule.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
need help with a mode_rewrite rule.
|
|
| namemattersnot@msn.com 2006-02-01, 6:08 pm |
| ok. i give up. need help 
here's the rule:
RewriteRule ^test/(.+)/(.*)$ /index.php$2
if i request: http://localhost/test/keyword/?show=files it properly
redirects me.
NOW, if i change the rule to: RewriteRule ^test/(.+)/(.*)$
/index.php$2&key=$1
it stops working.
i figured out that if i remove ? from $show=files and change the rule
to redirect to /index.php?$2, then i can use &key=$1. but i want to
figure out how to redirect the ?show=files request AND at the end add
&key=$1
thanks in advance!
| |
| Justin Koivisto 2006-02-02, 6:02 pm |
| namemattersnot@msn.com wrote:
> ok. i give up. need help 
>
> here's the rule:
>
> RewriteRule ^test/(.+)/(.*)$ /index.php$2
>
> if i request: http://localhost/test/keyword/?show=files it properly
> redirects me.
>
> NOW, if i change the rule to: RewriteRule ^test/(.+)/(.*)$
> /index.php$2&key=$1
> it stops working.
>
> i figured out that if i remove ? from $show=files and change the rule
> to redirect to /index.php?$2, then i can use &key=$1. but i want to
> figure out how to redirect the ?show=files request AND at the end add
> &key=$1
>
> thanks in advance!
See comp.lang.php for reply - please don't multipost.
--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
|
|
|
|
|