首页 > 解决方案 > 子目录中的 codiad 导致错误 500

问题描述

我已经在网络服务器 (xyz.com/codiad) 的子目录中安装了 codiad。根目录 .htaccess 文件如下:

Options -Indexes
AddDefaultCharset utf-8
AddCharset utf-8 .js
AddCharset utf-8 .php
AddCharset utf-8 .md
RewriteEngine on
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule (.+)\.htm$ index.php
RewriteRule (.+)\.md$ index.php
RewriteRule (.+)\.txt$ index.php
ErrorDocument 404 /404.htm

尝试进行 codiad 的初始设置会导致进程的内部服务器错误 500

.../codid/components/install/process.php

我假设 codiad 需要它自己的 .htaccess 文件..

我不得不说我无法访问 apache 配置文件,只能通过 FTP 访问网络空间

通常,我如何覆盖任何父目录的 .htaccess 文件?

标签: .htaccessapache2

解决方案


推荐阅读