Welcome! Log In Create A New Profile

Advanced

Problem with converting rewrite rules

Posted by puzon 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Problem with converting rewrite rules
December 06, 2012 06:12PM
Hello.
I have a problem with converting these rules to nginx format. I'm trying web converters and try to google problem, no effect.

[code]
RewriteRule ^files/(\w{1})(\w{1})(\w{30})/\w+\.(\w+)$ files/$1/$2/$1$2$3.$4 [L] #this line i converted myself.

RewriteRule ^index.php/?(.+) /$1 [L,R=301]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
[/code]
thanks
Re: Problem with converting rewrite rules
December 08, 2012 03:41PM
I found solution when i analize what's in this site. It's working on Zend framework, and i found solution for this:

rewrite "^/files/(\w{1})(\w{1})(\w{30})/\w+.(\w+)$" /files/$1/$2/$1$2$3.$4 last;

try_files $uri $uri/ /index.php;

Solved.

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready