Help me please about Rewrite

i-comers nginx-forum at nginx.us
Wed Jun 17 14:45:44 MSD 2009


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.

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






More information about the nginx mailing list