windows-server-codeigniter-404-hatasi-cozumu

Windows Server CodeIgniter 404 File or Directory Not Found Hatası Çözümü

Windows Server CodeIgniter 404 File or Directory Not Found Hatası Çözümü

Selamlar arkadaşlar windows serverde codeigniter projelerimizde 404 hatası alabiliyoruz. Bu sorunu linux sunucularda biliyorsunuz HTACCESS ile çözebiliyorduk. Fakat windows sunucuda htaccess işlemiyor. Bunun yerine web config bulunuyor 🙂 Şimdi gelelim çözüme 🙂

Madde 1: Ana dizinde web.config adında bir dosya oluşturuyoruz.

Madde 2: oluşturduğumuz dosyanın içine alttaki kodları yapıştırıyoruz.

<?php

<?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>

Problemimiz bu şekilde çözülüyor.

Sonraki konuda görüşmek üzere
Kanalıma abone olmayı unutmayın 🙂..

 

Similar Posts

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir