June 17, 2009 01:34PM
On Wed, Jun 17, 2009 at 06:45:44AM -0400, i-comers wrote:

> How i can convert this Rewrite Apache to Rewrite as nginx Rewrite
>
> RewriteRule !(/[^\./]*|\.(|shtml|shtml|html|htm|shtml|php|php3|php4|php5|php6))$ -
> RewriteRule ^(sq|ar|bg|ca|zh-CN|zh-TW|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|id|it|ja|ko|lv|lt|mt|no|pl|pt|ro|ru|sr|sk|sl|es|sv|th|tr|uk|vi)/(.*)$ $2?hl=$1
> # If not valid html file, view as original (without traslation)
> RewriteRule ^(sq|ar|bg|ca|zh-CN|zh-TW|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|id|it|ja|ko|lv|lt|mt|no|pl|pt|ro|ru|sr|sk|sl|es|sv|th|tr|uk|vi)/(.*)$ $2
>
> I hope somebody here can help me to convert this Rewrite.
> Regards.

It's not easy to understand inverted RewriteRule's logic.
Also it seems that the first and third rules do nothing.
Could you describe what these rules are intended to do ?


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Help me please about Rewrite

i-comers June 17, 2009 06:45AM

Re: Help me please about Rewrite

Igor Sysoev June 17, 2009 01:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 248
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready