if (false === $suffix) {
// 禁止伪静态访问
$this->path = $pathinfo;
} elseif ($suffix) {
// 去除正常的URL后缀
$this->path = preg_replace('/\.(' . ltrim($suffix, '.') . ')$/i', '', $pathinfo);
} else {
// 允许任何后缀访问
$this->path = preg_replace('/\.' . $this->ext() . '$/i', '', $pathinfo);
}
}
return $this->path;
}
/**
* 当前URL的访问后缀
* @access public
cht |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
REDIRECT_PATH_INFO | english-chinese/(You’ll want to ask the Lord to help you find what buzzword works in any particular situation.) |
REDIRECT_STATUS | 200 |
proxy-nokeepalive | 1 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://tw.xyzdict.com/english-chinese/%28You%E2%80%99ll%20want%20to%20ask%20the%20Lord%20to%20help%20you%20find%20what%20buzzword%20works%20in%20any%20particular%20situation.%29 |
HTTP_HOST | www.xyzdict.com |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
LD_LIBRARY_PATH | /www/server/apache/lib |
SERVER_SIGNATURE | <address>Apache Server at www.xyzdict.com Port 80</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.xyzdict.com |
SERVER_ADDR | 172.18.93.80 |
SERVER_PORT | 80 |
REMOTE_ADDR | 54.198.37.250 |
DOCUMENT_ROOT | /www/wwwroot/www.xyzdict.com |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/www.xyzdict.com |
SERVER_ADMIN | webmaster@example.com |
SCRIPT_FILENAME | /www/wwwroot/www.xyzdict.com/index.php |
REMOTE_PORT | 45432 |
REDIRECT_URL | /english-chinese/(You’ll want to ask the Lord to help you find what buzzword works in any particular situation.) |
REDIRECT_QUERY_STRING | cht |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | cht |
REQUEST_URI | /english-chinese/%28You%E2%80%99ll%20want%20to%20ask%20the%20Lord%20to%20help%20you%20find%20what%20buzzword%20works%20in%20any%20particular%20situation.%29?cht |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711655741.0203 |
REQUEST_TIME | 1711655741 |
APK_DEF_AES_KEY | A3B6C9D0EF142857 |
APK_DEF_AES_IV | 3690ABCDEF142857 |
APK_NEW_AES_KEY | |
APK_NEW_AES_IV |