i want to rewrite:
http://a.com/abcde.jpg
to
http://a.com/ab/cde.jpg
here is my nginx config:
rewrite “^/([a-z]{2})([a-z]{3}).jpg$” /$1/$2.jpg last;
but it not works
Posted at Nginx Forum:
i want to rewrite:
http://a.com/abcde.jpg
to
http://a.com/ab/cde.jpg
here is my nginx config:
rewrite “^/([a-z]{2})([a-z]{3}).jpg$” /$1/$2.jpg last;
but it not works
Posted at Nginx Forum:
Hi,
Avoid rewrite’s:
location ~ ^/([a-z][a-z])([a-z][a-z][a-z]).jpg$ {
try_files /$1/$2.jpg $uri;
}
Andrejs
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs