PHP website not running on iis or htaccess not working

Hello
am trying to run my website on iis but it only run the first page my is like this url http://localhost/friendmiiDemo/ and it works but when i go to http://localhost/friendmiiDemo/about it does not work i get this error https://www.dropbox.com/s/omltzinfskxpbey/Screenshot%20(49).png?dl=0

this is my 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="{R:1}" pattern="^(index\.php|assets|images|js|css|uploads|favicon.png)" ignoreCase="false" />
                        <add input="%(REQUEST_FILENAME)" matchType="IsFile" />
                        <add input="%(REQUEST_FILENAME)" matchType="IsDirectory" />
                    </conditions>
                    <action type="Rewrite" url="index.php/{R:1}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

the first loaded page https://www.dropbox.com/s/qk38l9uoh5qvv1q/Screenshot%20(48).png?dl=0
and in the config i have these routes

$route['posts/create'] = 'posts/create';
$route['posts/update'] = 'posts/update';
$route['posts/(:any)'] = 'posts/view/$1';
$route['posts'] = 'posts/index';
$route['default_controller'] = 'pages/view';
$route['(:any)'] = 'pages/view/$1';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;

i really don’t know what is wrong
Please help
Thanks in advance

Sponsor our Newsletter | Privacy Policy | Terms of Service