本帖最后由 poil 于 2017-4-26 02:01 编辑
CentOS6.5x64 apache 2.4.25+php5.5+mysql5.6
不管是否保留程序的.htaccess,都出错,删除.htaccess,就空白页,如用程序的.htaccess就出错!(个人怀疑是否伪静态)
但在其他控制面板同环境下没有问题!
程序的.htaccess内容
-----------------------
# Turn on URL rewriting
RewriteEngine On
php_flag magic_quotes_gpc On
php_flag safe_mode On
# Installation directory
RewriteBase /
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
RewriteRule ^manage/ manage.php [L]
# Protect application and system files from being viewed
RewriteRule ^(?:WEB-INF|vhost)\b.* index.php/$0 [L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)\.(jpg|jpeg|gif|png|bmp)$ /assets/images/white_space.gif [NC]
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
|
|