2017-03-29 12 views
0

Windowsサーバーにcodeigniterプロジェクトをアップロードしようとしています。私はWindowsサーバー上のプロジェクトをアップロードするとき私のインデックスページは完璧に実行しているが、私はユーザー名とパスワードを入力してログインページにエラーメッセージが来る。.htaccessファイルをweb.configファイルに設定すると、内部サーバーエラーが発生する

HTTP Error 500.19 - Internal Server Error 
The requested page cannot be accessed because the related configuration data for the page is invalid. 

Detailed Error Information: 
Module  IIS Web Core 
Notification  BeginRequest 
Handler Not yet determined 
Error Code  0x80070003 
Config Error  Cannot read configuration file 
Config File \\?\D:\Inetpub\vhosts\sp-tapi.in\clean-note.rudra-infotech.com\test\web.config 
Requested URL  http://clean-note.rudra-infotech.com:80/test 
Physical Path  D:\Inetpub\vhosts\sp-tapi.in\clean-note.rudra-infotech.com\test 
Logon Method  Not yet determined 
Logon User  Not yet determined 

私は同じ問題を持っていた私のweb.configファイルが

<?xml version="1.0" encoding="UTF-8"?> 
<configuration> 
    <system.webServer> 
    <rewrite> 
     <rules> 
     <rule name="rule 1S" stopProcessing="true"> 
<match url="^(.*)$" /> 
<action type="Rewrite" url="/index.php/{R:1}" appendQueryString="true" /> 
</rule> 

     </rules> 
    </rewrite> 
    <httpErrors> 
     <remove statusCode="404" subStatusCode="-1" /> 
     <error statusCode="404" path="/somedir/oops404.htm" responseMode="ExecuteURL" /> 
    </httpErrors> 
    </system.webServer> 
    <system.web> 
    <customErrors mode="Off" /> 
    </system.web> 
</configuration> 

答えて

1

ある (IIS 8.5を使用して)IISサーバーのWeb.configファイルに私の.htaccessファイルを変換した、これでご確認ください。変更、それは私のために働いた。

 <?xml version="1.0" encoding="UTF-8"?> 
    <configuration> 

    <system.webServer> 

     <httpErrors errorMode="Detailed" /> 
    <asp scriptErrorSentToBrowser="true"/> 

    <rewrite> 
    <rules> 
     <rule name="RuleRemoveIndex" stopProcessing="true"> 
      <match url="^(.*)$" ignoreCase="false" /> 
      <conditions> 
        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> 
       <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> 
      </conditions> 
      <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true"/> 
     </rule> 
    </rules> 
    </rewrite> 

</system.webServer> 

<system.web> 
    <customErrors mode="Off"/> 
    <compilation debug="true"/> 
</system.web> 

</configuration> 
+0

回答に応じてweb.configファイルを変更しますが、動作しません。 –

+0

あなたのログを確認しましたか? –

+0

私は問題のブラウザを自動的にコールコントローラの前にスペースを含む解決します。いいね。 https://abc-rudra-infotech.com/%20test –

関連する問題