views:

48

answers:

1

I need to convertthe following Apache htaccess rules to Nginx Rewrite rules:

Redirect 301 /feed.php http://www.example.com/feed/

Thanks very much~

A: 

Formatting's a bit off, but I assume your original rule was

Redirect 301 /feed.php http://www.example.com/feed/

so the Nginx rewrite would be

rewrite ^/feed\.php http://www.example.com/feed/ permanent;

Not difficult if you read the documentation.

pjmorse