Welcome! Log In Create A New Profile

Advanced

Anybody alredy need to translate the htaccess to nginx rules

Big Bet
June 20, 2010 05:42PM
This is my htaccess.. please, anybody helpe me..
<IfModule mod_rewrite.c>
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>

<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
#Isn't working quite properly
#RedirectMatch 302 ^(((?!index.php).)*?)/$ $1/index.php
</IfModule>
</IfModule>

# sends requests /index.php/path/to/module/ to "index.php"
AcceptPathInfo On

# @todo This may not be effective in some cases
FileETag Size
--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Anybody alredy need to translate the htaccess to nginx rules

Big Bet June 20, 2010 05:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready