亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

httpd.conf修改了之后顯示下面這個錯誤,看了日志說是RewriteCond %{REQUSET_FILENAME}!-d無效

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.


正在回答

2 回答

Rewritebase /index.php? ?可以忽略不寫

0 回復 有任何疑惑可以回復我~

首先說下我用的是thinkphp3.2.3版,剛開始按照老師的流程寫下來是問題,后百度解決了

第一步:

1.httpd.conf中去掉LoadModule rewrite_module modules/mod_rewrite.so 前面的#號

2.AllowOverride None 修改為了AllowOverride All(如果有兩處,就都修改了吧)

(記得重啟wrap服務)

二:這里不是Apache的配置文件了

(通過index.php生成的列如APP文件下的conf)

3.在config文件中添加以下配置:?

// URL地址不區分大小寫

'URL_CASE_INSENSITIVE' => true,

//REWRITE模式

'URL_MODEL' => 2,


4.根目錄.htaccess如果沒有自己建也可以。

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

Rewritebase /index.php

RewriteRule ^(.*)$ /index.php?/$1 [L]

</IfModule>

(這第4最好是別用,我用了官方自帶的.htaccess沒有問題,按照老師的寫下來有問題)


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
快速入門ThinkPHP框架—理論篇
  • 參與學習       89101    人
  • 解答問題       593    個

快速入門ThinkPHP框架教程,掌握ThinkPHP的理論基礎

進入課程

httpd.conf修改了之后顯示下面這個錯誤,看了日志說是RewriteCond %{REQUSET_FILENAME}!-d無效

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號