Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8550221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:54:08+00:00 2026-06-11T13:54:08+00:00

i wanna ask you for help related to deploy Codeigniter apps on IIS, version

  • 0

i wanna ask you for help related to deploy Codeigniter apps on IIS, version 7.5 . I’ve tried reading other posts here related to Codeigniter and IIS but none of them works. I developed an application with CodeIgniter 1.7 that works fine in Apache, but i can’t make it work in IIS 7.5, under Windows 7 Ultimate.

IIS data of phpconfig

First of all, php already works in the server, and i followed al the steps to make it work, also i installed IIS_UrlRewriteModule that i suppose that is necessary for php applications to work and use files like htaccess. (Attached is a JPG of the phpinfo in the server). This is a local server IIS 7.5 .

After that make sure that PHP works, i put the folder of the web application inside C:\inetpub\wwwroot\ , and this is the .htaccess that i’m using in apache:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /application/index.php?/$1 [L]

RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /application/index.php?/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ application/index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 index.php
</IfModule>

And i read that with IIS you have to use web.config files, so i created a file based on an example of another post of stackoverflow and it has the next code:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="MyRule"> <match url="^(.*)$" /> 
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php/{R:1}" appendQueryString="false" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration> 

But, when i go to “http:/ /localhost/application” i get this:

File directory of website

And if i put “http:/ /localhost/application/index.php” i get error 500. I get the same situation if i only have web.config in the application root directory or if i have .htaccess in the root directory. I don’t know whatelse to do, please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:54:09+00:00Added an answer on June 11, 2026 at 1:54 pm

    Well, finally after a little bit testing i fixed it, thanks God. First of all i had problems with php.ini because the directory of extensions was wrong, so it gave me an error in the PHP log when it tries to found mysql and mssql extensions. After that i modified the handler mappings in IIS Manager, i edited the module mapping that i created for PHP, in the section of Request Restrictions i checked “Invoke handler only if request is mapped to File” and after that i modified the web.config like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="MyRule"> <match url="^(.*)$" /> 
                        <conditions>
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="/application/index.php?/{R:1}" appendQueryString="false" />
                    </rule>
                </rules>
            </rewrite>
            <defaultDocument>
                <files>
                    <add value="index.php" />
                </files>
            </defaultDocument>
            <security>
             <requestFiltering>
                <hiddenSegments applyToWebDAV="false">
                   <add segment="application" />
                   <add segment="system" />
                </hiddenSegments>
             </requestFiltering>
          </security>
        </system.webServer>
    </configuration>  
    

    So now it works 😀 .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

wanna ask you for help. I am bit lost with declarative statement in asp.net
Just wanna ask anyone here knows why when i put a placeholder in my
I just wanna ask best practice supposed I have three tables. posts, categories, post_Categories.
Just wanna ask u guys here, I have a drop down list box which
I probably missed something but just wanna ask.. I found this code in the
Hello guys wanna ask help because I don't understand how to create database that
I just wanna ask if there's a way where I could put an object
I just wanna ask your opinion/suggestion on how to 'terminate' a running application/process is
I just wanna ask if there's a way in C#/ASP.NET to create 'dynamic' tables/fields
I just wanna ask if there's a possibility to retrieve the contents of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.