Welcome Guest, Not a member yet? Register   Sign In
Multiple Application on IIS. How to define web.config?
#1

[eluser]Unknown[/eluser]
Hello,

Multiple Application directory arrangment :-

Code:
+ Application
   - Config
   - Controllers
   - Models
   - Views
   + Backend
      - Config
      - Controllers
      - Models
      - Views
+ Backend
    index.php
+ System
index.php
web.config

File web.Config define as :-

Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="Rewrite to index.php">
          <match url="index.php|backend" />
          <action type="None" />
        </rule>
        <rule name="Rewrite CI">
          <match url=".*" />
          <conditions>
            <add input="{REQUEST_FILENAME}" pattern="css|js|jpg|jpeg|png|gif|ico|htm|html" negate="true" />
          </conditions>
          <action type="Rewrite" url="index.php/{R:0}" />          
        </rule>
      </rules>
    </rewrite>
        <directoryBrowse enabled="false" />
  </system.webServer>
</configuration>

Above web.config can be access only Primay application (application/controller)
How to define web.config to access Backend application (application/backend/controller)

The application working fine on XAMPP

Thankyou in advance




Theme © iAndrew 2016 - Forum software by © MyBB