我有这个工作在我的专用服务器上,但它在我的共享主机上失败,请什么可能是错误的?谢谢。
AddHandler phpini-cgi .php
#Action phpini-cgi /cgi-bin/php5-custom-ini.cgi
Options -Indexes
Options FollowSymLinks
# Make Drupal handle any 404 errors.
ErrorDocument 404 /404.php
# Set the default handler.
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)$ index.php?q=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)$ index.php?q=$1&r=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/([^/]+)$ index.php?q=$1&r=$2&s=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)$ index.php?q=$1&r=$2&s=$3&t=$4 [L]
</IfModule>发布于 2016-03-15 22:02:38
我找到了问题所在。我注意到托管公司没有将Php配置为显示错误,因此您很难知道问题所在。问题实际上出在到服务器的数据库连接上。一旦我修复了数据库连接,我的网站就可以正常工作了。
https://stackoverflow.com/questions/36009974
复制相似问题