XAKEPok Posted December 10, 2009 Report Share Posted December 10, 2009 Доброго времени суток. Столкнулся с проблемой. Необходимо что бы при использовании mod rewrite в строке УРЛа передавались так же параметры через обычный "?". Например два правила: RewriteRule ^blog/subscribe.htm.{0,1} /index.php?ras=blog&action=subscribe RewriteRule ^blog/subscribe_test.htm.{0,1}$ /index.php?ras=blog&action=subscribe&blog=$2 (использую сейчас его) При переходе на blog/subscribe_test.html УРЛ замечательно преобразовывается. Но мне необходимо что б УРЛ выглядел по-другому. Надо что б УРЛ был blog/subscribe.html?blog=test. Для этого написал первое правило. Но оно, увы, не работает. ПОдскажите плиз регулярное выражение для mod rewrite, которое бы удовлетворяло моему УРЛу. Quote Link to comment Share on other sites More sharing options...
Darhazer Posted December 13, 2009 Report Share Posted December 13, 2009 Пользуйте флаг [QSA] (query string append) Quote Link to comment Share on other sites More sharing options...
XAKEPok Posted December 14, 2009 Author Report Share Posted December 14, 2009 Спасибо за идею. Теперь хоть буду знать что гуглить. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.