Answers.Body: <p>I'm running the latest IIS 10 on Windows 10 and "pretty URLs" (i.e. <code>craft.dev/admin/dashboard</code> worked out-of-the-box using Craft's stock <code>web.config</code> file in the public HTML folder with no modifications.</p>
  
  <p>I'd double check you've got that file in place and haven't made any modifications to it.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-03T02:44:55.450Z
Answers.Text: Thanks Brad. Yes, that was the problem. The server owner had disabled the file because with it on the server would throw errors (500 if I recall). It hasn't been fixed so I have just had to go ahead with index.php in each URL.
Answers.UserDisplayName: Jack McKenzie
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-22T21:03:33.787Z
Answers.LastActivityDate: 2016-06-22T21:03:33.787Z
Answers.UserDisplayName: Brad Bell
Body: <p>Is there a way to omit index.php from the URL when using IIS server? Adding </p>
  
  <pre><code>'omitScriptNameInUrls' =&gt; true,
  </code></pre>
  
  <p>seems to break the site (except for the front page). index.php is removed from the menu links, but when called the sub-pages result in a 404.</p>
  
  <p>This is my first Craft site on IIS, and I have no experience with IIS. It is the client choice unfortunately.</p>
  
Tags: <url>
Title: Omit index.php from URL on IIS
ThreadText: # Omit index.php from URL on IIS
  
  (Asked by: username_0 on 2016-06-19)
  
  Is there a way to omit index.php from the URL when using IIS server? Adding
  
  ```
  'omitScriptNameInUrls' => true,
  
  ```
  
  seems to break the site (except for the front page). index.php is removed from the menu links, but when called the sub-pages result in a 404.
  
  This is my first Craft site on IIS, and I have no experience with IIS. It is the client choice unfortunately.
  
  **Tags:** url
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-06-22. Score: 1 | Accepted answer
  
  I'm running the latest IIS 10 on Windows 10 and "pretty URLs" (i.e. `craft.dev/admin/dashboard` worked out-of-the-box using Craft's stock `web.config` file in the public HTML folder with no modifications.
  
  I'd double check you've got that file in place and haven't made any modifications to it.
  
  > **Comments:**
  > **username_0**: Thanks username_1. Yes, that was the problem. The server owner had disabled the file because with it on the server would throw errors (500 if I recall). It hasn't been fixed so I have just had to go ahead with index.php in each URL.  
  
  ---
  
  