简体   繁体   English

目前无法处理此请求htaccess

[英]is currently unable to handle this request htaccess

I need help editing my httpd.conf file to run my script after installing on CWP control panel. 在CWP控制面板上安装后,我需要编辑httpd.conf文件以运行我的脚本的帮助。 My script run on cpanel with default settings. 我的脚本使用默认设置在cpanel上运行。 .htaccess file details: .htaccess文件的详细信息:

 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ index.php/$1 [L]
 Apache config
 <FilesMatch ".(eot|ttf|otf|woff|php)">
 Header set Access-Control-Allow-Origin "*"
 </FilesMatch>

Try removing the Apache config line so your .htaccess file looks like this: 尝试删除Apache config行,以便您的.htaccess文件如下所示:

 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ index.php/$1 [L]
 <FilesMatch ".(eot|ttf|otf|woff|php)">
 Header set Access-Control-Allow-Origin "*"
 </FilesMatch>

Use htaccesscheck.com to check your .htaccess file syntax. 使用htaccesscheck.com检查您的.htaccess文件语法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM