I tried this Nginx rule based on this answer Nginx URL Rewrite with Multiple Parameters:
location /logs {
rewrite "^/logs/([a-zA-Z]+)/([a-zA-Z]+)/([a-zA-Z]+)/([a-zA-Z]{3})$"
/index.php?y=$1&m=$2&d=$3&view=$4 last;
}
to make php accept parameters with slashes http://test.com/logs/index.php?y=%s&m=%s&d=%s&view=%s, like:
http://test.com/logs/2014/
http://test.com/logs/2014/9/
http://test.com/logs/2014/9/13/
http://test.com/logs/2014/9/13/error/
and I can't get it to work.
[a-zA-Z0-9]rewrite "^/logs/([a-zA-Z]+)$" /index.php?y=$1 last;.http://test.com/logs/index.php?y=%s&m=%s&d=%s&view=%sis just an example of what url will be passing to the php to avoid answer assumption