Apache .htaccess在子域中显示500个内部错误
这是我用来重定向的htaccess代码,请建议好的解决方案,我以前使用它与另一台服务器相同,但当我更改主机时,我收到了这个错误 内部服务器错误 服务器遇到内部错误或配置错误,无法完成您的请求 请通过以下地址与服务器管理员联系:webmaster@payments.boutiquemerchantsolutions.com通知他们此错误发生的时间,以及您在此错误之前执行的操作 有关此错误的详细信息,请参阅服务器错误日志 此外,尝试使用ErrorDocument处理请求时遇到500内部服务器错误Apache .htaccess在子域中显示500个内部错误,apache,.htaccess,mod-rewrite,url-rewriting,kohana,Apache,.htaccess,Mod Rewrite,Url Rewriting,Kohana,这是我用来重定向的htaccess代码,请建议好的解决方案,我以前使用它与另一台服务器相同,但当我更改主机时,我收到了这个错误 内部服务器错误 服务器遇到内部错误或配置错误,无法完成您的请求 请通过以下地址与服务器管理员联系:webmaster@payments.boutiquemerchantsolutions.com通知他们此错误发生的时间,以及您在此错误之前执行的操作 有关此错误的详细信息,请参阅服务器错误日志 此外,尝试使用ErrorDocument处理请求时遇到500内部服务器错误 H
Header set Access-Control-Allow-Origin "*"
# Turn on URL rewriting
RewriteEngine On
# Installation directory
#RewriteBase /
# Protect application and system files from being viewed
RewriteRule ^(application|modules|system) - [F,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
#RewriteRule .* index.php/$0 [PT,L]
#RewriteRule ^(.*)$ index.php/$1 [PT,L]
RewriteRule .* index.php?kohana_uri=$0 [PT,QSA,L]
请修改格式!(格式为“代码块”,而不是“引用”)我试过了,但您似乎在重要位置缺少换行符-所以我不知道我是否真的在更改/修复代码?另外,请更好地解释你的问题。。。你要什么网址。有关错误的详细信息,请查看错误日志@USER82217您没有发布错误。现在发布了吗?@m-abshir