Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-18T15:29:09.553Z
Answers.Text: The default value of auto was the problem.  For some reason it evaluated the sub-sites to have different capabilities.  Thanks.
Answers.UserDisplayName: Chip Shank
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-17T21:48:49.490Z
Answers.LastActivityDate: 2017-07-17T21:48:49.490Z
Answers.UserDisplayName: Jordi Kroon
Body: <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>
  
Tags: <index>
Title: Copy of subsite is still serving index.php in the links?
ThreadText: # 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.
  
  ```
  <?php
  
  return [
      '*' => [
          // ...
          '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.  
  
  ---
  
  