服务器错误500.htaccess
我有这个工作在我的专用服务器上,但它在我的共享主机上失败,请什么是错误的?多谢各位 AddHandler phpini cgi.php服务器错误500.htaccess,.htaccess,shared-hosting,.htaccess,Shared Hosting,我有这个工作在我的专用服务器上,但它在我的共享主机上失败,请什么是错误的?多谢各位 AddHandler phpini cgi.php #操作phpini cgi/cgi bin/php5-custom-ini.cgi 选项-索引 选项如下符号链接 #让Drupal处理任何404错误。 ErrorDocument 404/404.php #设置默认处理程序。 DirectoryIndex.php 重新启动发动机 重写基/ 重写cond%{REQUEST_FILENAME}-F 重写cond%{R
#操作phpini cgi/cgi bin/php5-custom-ini.cgi
选项-索引
选项如下符号链接
#让Drupal处理任何404错误。
ErrorDocument 404/404.php
#设置默认处理程序。
DirectoryIndex.php
重新启动发动机
重写基/
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^([^/]+)$index.php?q=$1[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^([^/]+)/([^/]+)$index.php?q=$1&r=$2[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^([^/]+)/([^/]+)/([^/]+)$index.php?q=$1&r=$2&s=$3[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)$index.php?q=$1&r=$2&s=$3&t=$4[L]
我找出了问题所在。我注意到托管公司没有将Php配置为显示错误,因此您很难知道问题出在哪里。问题实际上是到服务器的数据库连接。一旦我修复了数据库连接,我的网站就正常运行了。我找到了问题所在。我注意到托管公司没有将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>