Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Please help me in conversion the .htaccess rules to Nginx

Options +FollowSymLinks
RewriteEngine on
RewriteRule   ^show\.php/(.*)$ show2.php?img=$1 [L]
RewriteRule   ^out\.php/([a-z]{1})(.*)$ out2.php?$1=$2&%{QUERY_STRING} [L]
RewriteRule   ^view\.php/(.*)$ view2.php?img=$1 [L]

Thanks :)

share|improve this question

1 Answer 1

up vote 0 down vote accepted

after reading the documentation for nearly 1hr I found it by myself :)

rewrite ^/view.php/(.*)$ /view.php?img=$1 last;

share|improve this answer
This merely highlights the fact that the documentation should be read FIRST. Only if you do not find what you're looking for in the docs, or cannot understand what they say, should you be asking for help on this or any other site. – John Gardeniers Oct 1 '10 at 10:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.