簡體   English   中英

Codeigniter在網頁上發送電子郵件錯誤404

[英]Codeigniter send email error 404 on web page

我正在測試一個網絡示例...我在此方向上創建了聯系表格,您可以嘗試發送電子郵件,然后查看inspect-console或inspect-network:

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

它給出錯誤404,“在此服務器上找不到所請求的URL” ...我不知道發生了什么.... htacces文件,請幫助我!

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [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=$1 [PT,L] 

</IfModule>

同樣在codeigniter的Config文件夾-> 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/$1 [L]
</IfModule>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM