You are here: php and mod_rewrite? « PHP Programming Language « IT news, forums, messages
php and mod_rewrite?

Posted by namemattersnot on 02/02/06 07:17

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!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация