support nginx rewrite
This commit is contained in:
parent
77d40b0b5c
commit
2b5584b223
@ -83,7 +83,9 @@ class Url{
|
|||||||
$custom = array();
|
$custom = array();
|
||||||
if( !self::$url ){
|
if( !self::$url ){
|
||||||
if( c('static_url') ){
|
if( c('static_url') ){
|
||||||
self::$url = isset($_SERVER['REDIRECT_URL'])&&$_SERVER['REDIRECT_URL']?$_SERVER['REDIRECT_URL']:$_SERVER['PATH_INFO'];
|
//self::$url = isset($_SERVER['REDIRECT_URL'])&&$_SERVER['REDIRECT_URL']?$_SERVER['REDIRECT_URL']:$_SERVER['PATH_INFO'];
|
||||||
|
self::$url = trim( current( explode('?', $_SERVER['REQUEST_URI'])), '/' );
|
||||||
|
self::$url = ltrim( self::$url, trim( self::URLBASE , '/' ) );
|
||||||
}else{
|
}else{
|
||||||
self::$url = $_GET;
|
self::$url = $_GET;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user