Rewrite rule for nginx from Apache

Robert Gabriel lists at ruby-forum.com
Wed Nov 18 18:17:23 MSK 2009


Can anyone tell me how to rewrite this rules from apache:

RewriteEngine On
RewriteRule ^shorten/(.*)$ shorten.php?longurl=$1 [L]
RewriteRule ^([0-9a-zA-Z]{1,6})$ redirect.php?url=$1 [L]

to nginx?

Thanks!
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list