at the root directory of our Application create file web.config past the below code inside web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
If you use Lower version of php 5.3.x you will get some php error. Its batter to use php 5.5.5 version.
By default, the index.php file will be included in your URLs: example.com/index.php/news/article/my_article You can easily remove this file by using a .htaccess file with some simple rules. Here is an example of such a file, using the "negative" method in which everything is redirected except the specified items: You will find .htaccess at the root directory of your "Easy Inventory" application. Please be noted by default .htaccess is hidden file make you have permission to view hidden file. This is our .htaccess Rule if this rule is not work properly follow the bellow instruction