Welcome! Log In Create A New Profile

Advanced

Problem with converting rewrite rules

Posted by puzon 
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 130
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