Hello, I am having trouble converting two Apache .htaccess to nginx syntax. They are WordPress MU related. The fist one redirects images uploaded using the regular WP version to the new path on WP MU. The second one allows to create "shortlinks" to be used in social platforms like Twitter.
I can't seem to convert the rules, maybe someone can help me out a bit?
[code]
RewriteRule ^wp-content/uploads/(.*)/(.*)/(.*)\.(.*)$ files/$1/$2/$3.$4 [NC,L]
[/code]
[code]
RewriteRule ^([0-9]+)$ ?p=$1 [R=301,L]
[/code]
Any help will be greatly appreciated :)