服务器错误500 .htaccess
问题描述:
我有这个在我的专用服务器上工作,但它在我的共享主机上失败请问什么可能是错的?谢谢。服务器错误500 .htaccess
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>
答
我找出问题。我注意到托管公司没有配置Php来显示错误,因此很难让您知道问题出在哪里。问题实际上是到服务器的数据库连接。一旦我修复了数据库连接,我的网站就没问题了。