Hi,
It’s possible in Nginx to make “Multiviews”? (like Apache) I didn’t
found information about this for Nginx
For example:
www.domain.com/test1/ → www.domain.com/test1.php
www.domain.com/test1/test2/ → www.domain.com/test1/test2.php
www.domain.com/every/ → www.domain.com/every.php
But if www.domain.com/every/ exists, goes to www.domain.com/every/ of
course. All directories who doesn’t exists, tries to .php and if not,
404.
Thank you
Posted at Nginx Forum:
On Wed, Dec 8, 2010 at 9:24 PM, icaro81 [email protected] wrote:
But if www.domain.com/every/ exists, goes to www.domain.com/every/ of
course. All directories who doesn’t exists, tries to .php and if not,
404.
something like
location ~ ^(.*)/$ {
try_files $uri $1.php;
}
?
–
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
It works, but:
How can we make work this? Thanks edogawaconan
Posted at Nginx Forum:
On Wed, Dec 8, 2010 at 11:28 PM, icaro81 [email protected] wrote:
It works, but:
location ~ ^(.+)/$ {
try_files $uri $1.php?$args;
}
should fix both problem
–
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org