Codeigniter 在网页上发送电子邮件错误 404

Codeigniter send email error 404 on web page

我正在测试一个 web 示例...我在这个方向上创建了一个联系表,您可以尝试发送电子邮件,然后查看 inspect-console 或 inspect-network:

http://www.novaderma.cl/site2/

它给出错误 404,"the requested URL was not found on this server" ...我不知道发生了什么...这是 .htacces 文件,请帮助我!!

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/ [QSA,L]
</IfModule>

在根目录的 htaccess 文件中添加此重写规则

<IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # Rewrite all other URLs to index.php/URL
    RewriteRule ^(.*)$ index.php?url= [PT,L] 

</IfModule>

同样在 codeigniter 配置文件夹 -> autoload.php 文件中添加 url 助手:

$autoload['helper'] = array('url');

您必须在 htaccess 文件中使用下面的代码...

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase //
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/ [L]
</IfModule>