Answers.Body: <p>So it turns out I needed to have the "Options +FollowSymLinks" block above the craft rewrite rule in my htaccess. See comments above.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-21T12:28:14.187Z
Answers.LastActivityDate: 2016-03-21T12:28:14.187Z
Answers.UserDisplayName: Matthew Carleton
Body: <p>I have followed the instructions for removing index.php and it works on all pages with the exception of pages with channels. So I would see <a href="http://www.example.com/index.php?p=news/2016/news-title" rel="nofollow">http://www.example.com/index.php?p=news/2016/news-title</a>.</p>
  
  <p>I also added the <code>'omitScriptNameInUrls' =&gt; true</code>, in the <code>general.php</code> file. </p>
  
  <p>Here is what I have in my <code>.htaccess</code> file</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
  
      # Send would-be 404 requests to Craft
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
      RewriteRule (.+) index.php?p=$1 [QSA,L]
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_deflate.c&gt;
      AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript image/svg+xml
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_headers.c&gt;
      &lt;FilesMatch "\.(eot|otf|tt[cf]|woff2?)$"&gt;
          Header set Access-Control-Allow-Origin "*"
      &lt;/FilesMatch&gt;
  &lt;/IfModule&gt;
  
  Options +FollowSymLinks
  RewriteEngine on
  RewriteCond %{HTTP_HOST} ^example.com [NC]
  RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-16T18:23:59.583Z
Comments.Text: Are you using Craft's stock `.htaccess` file?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-17T12:35:37.013Z
Comments.Text: Ive revised my answer to show what I have in there.
Comments.UserDisplayName: Matthew Carleton
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-17T21:41:07.810Z
Comments.Text: Is the 2nd block "Options +FollowSymLinks" just a SE formatting issue, or is that part of the same .htaccess code in the first chunk?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-18T17:21:23.650Z
Comments.Text: ya it's a redirect for the www
Comments.UserDisplayName: Matthew Carleton
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-18T23:05:56.857Z
Comments.Text: Try moving the www rewrite rule above the Craft rewrite.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-19T13:45:16.987Z
Comments.Text: yup that did the trick!
Comments.UserDisplayName: Matthew Carleton
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-19T15:13:23.403Z
Comments.Text: Awesome... would you mind adding that as an official answer?
Comments.UserDisplayName: Brad Bell
Tags: <url><config>
Title: index.php in url for just channel pages
ThreadText: # index.php in url for just channel pages
  
  (Asked by: username_0 on 2016-03-16)
  
  I have followed the instructions for removing index.php and it works on all pages with the exception of pages with channels. So I would see <http://www.example.com/index.php?p=news/2016/news-title>.
  
  I also added the `'omitScriptNameInUrls' => true`, in the `general.php` file.
  
  Here is what I have in my `.htaccess` file
  
  ```
  <IfModule mod_rewrite.c>
      RewriteEngine On
  
      # Send would-be 404 requests to Craft
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
      RewriteRule (.+) index.php?p=$1 [QSA,L]
  </IfModule>
  
  <IfModule mod_deflate.c>
      AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript image/svg+xml
  </IfModule>
  
  <IfModule mod_headers.c>
      <FilesMatch "\.(eot|otf|tt[cf]|woff2?)$">
          Header set Access-Control-Allow-Origin "*"
      </FilesMatch>
  </IfModule>
  
  Options +FollowSymLinks
  RewriteEngine on
  RewriteCond %{HTTP_HOST} ^example.com [NC]
  RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
  
  ```
  
  **Tags:** url, config
  
  > **Comments:**
  > **username_1**: Are you using Craft's stock `.htaccess` file?  
  > **username_0**: Ive revised my answer to show what I have in there.  
  > **username_1**: Is the 2nd block "Options +FollowSymLinks" just a SE formatting issue, or is that part of the same .htaccess code in the first chunk?  
  > **username_0**: ya it's a redirect for the www  
  > **username_1**: Try moving the www rewrite rule above the Craft rewrite.  
  > **username_0**: yup that did the trick!  
  > **username_1**: Awesome... would you mind adding that as an official answer?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-03-21. Score: 0 | Accepted answer
  
  So it turns out I needed to have the "Options +FollowSymLinks" block above the craft rewrite rule in my htaccess. See comments above.
  
  
  ---
  
  