Welcome! Log In Create A New Profile

Advanced

rewrite under subdir question

Posted by sipiatti 
rewrite under subdir question
February 16, 2014 01:43PM
Hi All,

please see this rewrite block:
if (!-e $request_filename)
{
rewrite ^/myadmin/(.*)$ /myadmin/index.php?/$1 last;
rewrite ^/(.*)$ /index.php?/$1 last;
break;
}

I want to redirect all request to /myadmin/* to /myadmin/index.php?/*
and all request to not ubder myadmin to redirect to index.php?/*

The second works, but the first does not.
What could be the problem?

Thanks in advance:
sipiatti
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready