<p>You should have the setting <code>'omitScriptNameInUrls' =&gt; true</code> on either both sites, or in the wildcard config. </p>

<pre><code>&lt;?php

return [
    '*' =&gt; [
        // ...
        'omitScriptNameInUrls' =&gt; true,
        // ...
    ]
];
</code></pre>

<p>You can read more about it here:
<a href="https://craftcms.com/support/remove-index.php" rel="nofollow noreferrer">https://craftcms.com/support/remove-index.php</a></p>

CC BY-SA 3.0
2017-07-18T15:29:09.553Z
The default value of auto was the problem.  For some reason it evaluated the sub-sites to have different capabilities.  Thanks.
Chip Shank
CC BY-SA 3.0
2017-07-17T21:48:49.490Z
2017-07-17T21:48:49.490Z
Jordi Kroon
<p>I have 2 subsites on the same apache server both pointing to the same craft database.  The original subsite has the normal links, but, the subsite copy has index.php in all of the links.  Can someone point me in the right direction to remove the index.php references? NOTE: .htaccess is correct and the same on both sites.</p>

<index>
Copy of subsite is still serving index.php in the links?
# Copy of subsite is still serving index.php in the links?

(Asked by: username_0 on 2017-07-17)

I have 2 subsites on the same apache server both pointing to the same craft database. The original subsite has the normal links, but, the subsite copy has index.php in all of the links. Can someone point me in the right direction to remove the index.php references? NOTE: .htaccess is correct and the same on both sites.

**Tags:** index


---

## 1 answers

### Answer by username_1 on 2017-07-17. Score: 2 | Accepted answer

You should have the setting 'omitScriptNameInUrls' => true on either both sites, or in the wildcard config. 
 [
        // ...
        'omitScriptNameInUrls' => true,
        // ...
    ]
];

You can read more about it here:
https://craftcms.com/support/remove-index.php

> **Comments:**
> **username_0**: The default value of auto was the problem.  For some reason it evaluated the sub-sites to have different capabilities.  Thanks.  

---

