ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

помогите переписать правила из .htaccess


  • To: nginx-ru@xxxxxxxxx
  • Subject: помогите переписать правила из .htaccess
  • From: "shaklov" <nginx-forum@xxxxxxxx>
  • Date: Sun, 25 Nov 2012 13:39:16 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=xIFpmU7xzYozmOEm8IR8fZdU893u/YUmb6VlD3dZ5R4=; b=N875zdHMry/QpC+rEVPXk9jKRATPWyxwxh78r4oliGgF7IBPm00IVCb2I6t2KnwCmOtGPi9y3abLVeKwiK+3EGjTEeb2JtufHA+hGlaygzRmYJ1z9FIHN2JI4iVfJcNX;

Очень прошу помочь переписать реврайты из .htaccess. Потребовалось Апач
полностью исключить.
RewriteEngine On
RewriteBase /

RewriteRule ^uk/$ index.php?language=uk [L]
RewriteRule ^ru/$ index.php?language=ru [L]
RewriteRule ^$ index.php?language=ru [L]

RewriteRule ^product_reviews_write\.php\/info\/p(.*)_.*\.html
product_reviews_write\.php\?products_id=$1 [L]
RewriteRule
^product_reviews_write\.php\/action\/process\/info\/p([0-9]*)_.*\.html
product_reviews_write\.php\?action=process\&products_id=$1 [L]

RewriteRule ^product_info\.php\/info\/p(.*)_.*\/action\/add_product
product_info\.php\?products_id=$1\&action=add_product\ [L]
RewriteRule
^shopping_cart\.php\/products_id\/([0-9]*)\/info\/p([0-9]*)_.*\.html
shopping_cart\.php\?products_id=$1 [L]

RewriteRule
^(product_info|index|shop_content|news|faq|articles|article_info).php(.*)$
redirector.php [L]

RewriteRule ^.*\.gif|\.jpg|\.jpeg|\.png|\.css|\.php|\.js$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*).html(.*)$ manager.php [L]

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,233211,233211#msg-233211

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.