# Help me tanslate the rewrite rule to nginx

**URL:** <https://www.ruby-forum.com/t/help-me-tanslate-the-rewrite-rule-to-nginx/219243>\
**Category:** NGINX\
**Created:** [April 25, 2012, 5:24am UTC](https://www.ruby-forum.com/t/help-me-tanslate-the-rewrite-rule-to-nginx/219243 "2012-04-25T05:24:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [April 25, 2012, 5:24am UTC](https://www.ruby-forum.com/t/help-me-tanslate-the-rewrite-rule-to-nginx/219243/1 "2012-04-25T05:24:07Z")

</div>

RewriteEngine on

RewriteCond %{REQUEST\_URI} !^/(skin|js)/

RewriteCond %{REQUEST\_FILENAME} !-f  
RewriteCond %{REQUEST\_FILENAME} !-d  
RewriteCond %{REQUEST\_FILENAME} !-l  
#RewriteRule ^(.+)$ /default.php/$1 [L]

RewriteRule .\* default.php [L]

thanks a lot

Posted at Nginx Forum:

> **[help me tanslate the rewrite rule to nginx](https://forum.nginx.org/read.php?2,225728,225728#msg-225728)**
>
> \<IfModule rewrite\_module\> RewriteEngine on RewriteCond %{REQUEST\_URI} !^/(skin|js)/ RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d RewriteCond %{REQUEST\_FILENAME} !-l #RewriteRule ^(.+)$ /default.php/$1 \[L\]
