From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 16 May 2007 01:21:10 +0300 From: Michael Shigorin To: ALT Linux Community Message-ID: <20070515222110.GE30001@osdn.org.ua> Mail-Followup-To: ALT Linux Community , sysadmins@lists.altlinux.org References: <200705031230.34173.birukov@vladinfo.ru> <20070508123829.GD9713@immo.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20070508123829.GD9713@immo.ru> User-Agent: Mutt/1.4.2.1i Cc: sysadmins@lists.altlinux.org Subject: Re: [Comm] mod_rewrite and ? X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: sysadmins@lists.altlinux.org, ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 22:19:23 -0000 Archived-At: List-Archive: List-Post: On Tue, May 08, 2007 at 04:38:29PM +0400, Alexey I. Froloff wrote: > > RewriteRule ^product_info.php\?(.*)products_id=([0-9]+) p-$1.html [R] > "product_info.php" - это %{SCRIPT_FILENAME}, а "products_id=" - > часть %{QUERY_STRING}, в RewriteRule оно не учитывается. > RewriteCond %{QUERY_STRING} products_id=([0-9]+) > RewriteRule ^product_info.php$ p-%1.html [R] Кстати, нашлось тут rewritewiki (искал своё): http://rewrite.drbacchus.com/rewritewiki/VirtualHost (для sysadmins@ продублирую и ссылку на http://www.mod-rewrite-wizard.com/) -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/