Codeigniter URL suffix not working
<p>I tried a lot to get the result i.e. <code>.html</code> or <code>/</code> as URL suffix, but failed.</p>

<p>My <code>config.php</code> is like...</p>

<pre><code>$config['base_url'] = 'http://localhost/domain/';
$config['index_page'] = 'index.php';
$config['uri_protocol'] = 'AUTO';
$config['url_suffix'] = '.html';
</code></pre>

<p>My <code>web.config</code> is like...</p>

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

<p>
</p>

<p>My <code>autoload.php</code> is like...</p>

<pre><code>$autoload['helper'] = array('url', 'file');
</code></pre>

<p>My URL is showing like...</p>

<pre><code>http://localhost/domain/view_details/get/some_details
</code></pre>

<p>where I want the URL like...</p>

<pre><code>http://localhost/domain/view_details/get/some_details.html
</code></pre>

<p>I tried <a href="https://stackoverflow.com/questions/23726776/codeigniter-url-suffix-html-automatically-for-all-url">this</a> and <a href="http://www.vishwashgaur.com/open-source/url-rewriting-codeigniter/" rel="nofollow noreferrer">this</a> also, but failed.</p>

<p><strong>What should I do ?</strong></p>