# Anybody alredy need to translate the htaccess to nginx rules

**URL:** <https://www.ruby-forum.com/t/anybody-alredy-need-to-translate-the-htaccess-to-nginx-rules/190460>\
**Category:** NGINX\
**Created:** [June 20, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/anybody-alredy-need-to-translate-the-htaccess-to-nginx-rules/190460 "2010-06-20T23:38:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigbet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b77776/32.png) [@bigbet](https://www.ruby-forum.com/u/bigbet)\
**Post date:** [June 20, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/anybody-alredy-need-to-translate-the-htaccess-to-nginx-rules/190460/1 "2010-06-20T23:38:57Z")

</div>

This is my htaccess… please, anybody helpe me…  
  
Options +FollowSymLinks  
RewriteEngine On

# Get rid of index.php

RewriteCond %{REQUEST\_URI} /index.php  
RewriteRule (.\*) index.php?rewrite=2 [L,QSA]

# Rewrite all directory-looking urls

RewriteCond %{REQUEST\_URI} /$  
RewriteRule (.\*) index.php?rewrite=1 [L,QSA]

# If the file doesn’t exist, rewrite to index

RewriteCond %{REQUEST\_FILENAME} !-f  
RewriteCond %{REQUEST\_FILENAME} !-d  
RewriteCond %{REQUEST\_FILENAME} !.[\w]+$  
RewriteRule ^(.\*)$ index.php?rewrite=1 [L,QSA]

\<IfModule !mod\_rewrite.c\>  
  
#Isn’t working quite properly  
#RedirectMatch 302 ^(((?!index.php).)\*?)/$ $1/index.php

# sends requests /index.php/path/to/module/ to “index.php”

AcceptPathInfo On

# @todo This may not be effective in some cases

FileETag Size
