Answers.Body: <p>This is a .htaccess workaround but I have tested and verified that it works.  Please the following in your root .htaccess file or httpd-app.conf:</p>
  <pre><code>RewriteCond %{REQUEST_URI} !^/wp-content/
  RewriteRule ^(.*)/civicrm(.*)$ /$1/CiviCRM/$2 [R=301,L]
  </code></pre>
  <p>If someone from the community cares enough to look into why this is defaulting to CiviCRM when everything is set to civicrm, please do.  Otherwise this band-aid will have to do.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-20T17:39:33.613Z
Answers.LastActivityDate: 2020-07-20T17:39:33.613Z
Answers.UserDisplayName: Brendan Spaar
Answers.Body: <p>Can you check the CMS Settings <code>https://yoursite.org//wp-admin/admin.php?page=CiviCRM&amp;q=civicrm%2Fadmin%2Fsetting%2Fuf&amp;reset=1</code> and see what you see?</p>
  <p>I suspect it looks like:</p>
  <p><a href="https://i.sstatic.net/NIrxU.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/NIrxU.png" alt="enter image description here" /></a></p>
  <p>Can you also check the WP Page 'CiviCRM'  I suspect the slug is not 'civicrm' lowercase.   These values must match in order for the urls to resove.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-09T21:36:18.447Z
Answers.Text: Hi Kevin, thanks for the quick reply.  Both the page slug and Base Page are lowercase.  I've updated my question with the screenshots of each.
Answers.UserDisplayName: Brendan Spaar
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-10T22:17:04.957Z
Answers.Text: That is really odd.  As they both match it should work.  Is it possible there is a civicrm folder in the web root
Answers.UserDisplayName: Kevin Cristiano
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-11T00:25:43.750Z
Answers.Text: Even stranger is that if you go to /civicrm it gives you a server side 404.  If you go to any other non existent folder (ie. /civistack) it will serve a html page 404.  I can't even do a 301 rewrite for the /civicrm folder to force it to CiviCRM.  This is really strange.
Answers.UserDisplayName: Brendan Spaar
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-20T15:28:21.567Z
Answers.Text: Can anyone add further suggestions or insight?  This is breaking Mosaico templates and we're not able to send mailings.  See the two new examples in the original post.  
  Could I use a rewrite in the htaccess to rewrite all requests for civicrm?civiwp= to CiviCRM?civiwp= ? If so, how would I do that?  Thanks!
Answers.UserDisplayName: Brendan Spaar
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-20T16:36:10.853Z
Answers.Text: Partial answer... adding the following in htaccess fixes the links but breaks the admin pages for civi... getting closer to a workaround...
  
  RewriteRule ^(.*)/civicrm(.*)$ /CiviCRM/$2 [L]
  RewriteRule ^(.*)/civicrm(.*)$ /$1/CiviCRM/$2 [R,L]
Answers.UserDisplayName: Brendan Spaar
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-09T21:21:48.030Z
Answers.LastActivityDate: 2020-07-09T21:21:48.030Z
Answers.UserDisplayName: Kevin Cristiano
Body: <p>Somehow CiviCRM is wanting to use the path /CiviCRM (notice the case) instead of all lowercase civicrm.  This has been fine until I upgraded to Civi 5.27 and now the civicrm?civiwp implementation results in a 404.  I can change the case manually and it will work but the automatically generated URLs use all lowercase.</p>
  <p>For example:
  <a href="https://www.domain.org/civicrm?civiwp=CiviCRM&amp;q=civicrm%2Fevent%2Fregister&amp;reset=1&amp;id=24" rel="nofollow noreferrer">https://www.domain.org/civicrm?civiwp=CiviCRM&amp;q=civicrm%2Fevent%2Fregister&amp;reset=1&amp;id=24</a>  == 404 Not Found</p>
  <p><a href="https://www.domain.org/CiviCRM/?civiwp=CiviCRM&amp;q=civicrm%2Fevent%2Finfo&amp;reset=1&amp;id=24" rel="nofollow noreferrer">https://www.domain.org/CiviCRM/?civiwp=CiviCRM&amp;q=civicrm%2Fevent%2Finfo&amp;reset=1&amp;id=24</a> == working</p>
  <p>This is also breaking images in my Mosaico templates.</p>
  <p>Example of a Mosaico image:
  <a href="https://www.domain.org/civicrm?civiwp=CiviCRM&amp;q=civicrm%2Fmosaico%2Fimg&amp;src=https%3A%2F%2Fwww.domain.org%2Fwp-content%2Fuploads%2Fcivicrm%2Fpersist%2Fcontribute%2Fimages%2Fuploads%2Fdcs_e1de5c0ee5de2a85bb86821132d2aaba.png&amp;method=resize&amp;params=166%2Cnull" rel="nofollow noreferrer">https://www.domain.org/civicrm?civiwp=CiviCRM&amp;q=civicrm%2Fmosaico%2Fimg&amp;src=https%3A%2F%2Fwww.domain.org%2Fwp-content%2Fuploads%2Fcivicrm%2Fpersist%2Fcontribute%2Fimages%2Fuploads%2Fdcs_e1de5c0ee5de2a85bb86821132d2aaba.png&amp;method=resize&amp;params=166%2Cnull</a></p>
  <p>If you change the link to /CiviCRM?civiwp=CiviCRM.... it works.</p>
  <p>I have verified that the permalink on the page is lowercase as well as the CMS Database Integration in Civi.  Has anyone seen this behavior or have any suggestions for how I can correct it?</p>
  <p><strong>UPDATE:</strong></p>
  <p>Adding the following lines to my htaccess fixes this as a workaround.  Still not sure why it is defaulting to CiviCRM instead of civicrm.  Hopefully if this is happening to you, you can use this patch.</p>
  <pre><code>RewriteCond %{REQUEST_URI} !^/wp-content/
  RewriteRule ^(.*)/civicrm(.*)$ /$1/CiviCRM/$2 [R,L]
  </code></pre>
  
Tags: <wordpress><links><redirect>
Title: CiviCRM is defaulting to uppercase path
ThreadText: # CiviCRM is defaulting to uppercase path
  
  (Asked by: username_0 on 2020-07-09)
  
  Somehow CiviCRM is wanting to use the path /CiviCRM (notice the case) instead of all lowercase civicrm. This has been fine until I upgraded to Civi 5.27 and now the civicrm?civiwp implementation results in a 404. I can change the case manually and it will work but the automatically generated URLs use all lowercase.
  
  For example:
  <https://www.domain.org/civicrm?civiwp=CiviCRM&q=civicrm%2Fevent%2Fregister&reset=1&id=24> == 404 Not Found
  
  <https://www.domain.org/CiviCRM/?civiwp=CiviCRM&q=civicrm%2Fevent%2Finfo&reset=1&id=24> == working
  
  This is also breaking images in my Mosaico templates.
  
  Example of a Mosaico image:
  <https://www.domain.org/civicrm?civiwp=CiviCRM&q=civicrm%2Fmosaico%2Fimg&src=https%3A%2F%2Fwww.domain.org%2Fwp-content%2Fuploads%2Fcivicrm%2Fpersist%2Fcontribute%2Fimages%2Fuploads%2Fdcs_e1de5c0ee5de2a85bb86821132d2aaba.png&method=resize&params=166%2Cnull>
  
  If you change the link to /CiviCRM?civiwp=CiviCRM.... it works.
  
  I have verified that the permalink on the page is lowercase as well as the CMS Database Integration in Civi. Has anyone seen this behavior or have any suggestions for how I can correct it?
  
  **UPDATE:**
  
  Adding the following lines to my htaccess fixes this as a workaround. Still not sure why it is defaulting to CiviCRM instead of civicrm. Hopefully if this is happening to you, you can use this patch.
  
  ```
  RewriteCond %{REQUEST_URI} !^/wp-content/
  RewriteRule ^(.*)/civicrm(.*)$ /$1/CiviCRM/$2 [R,L]
  
  ```
  
  **Tags:** wordpress, links, redirect
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2020-07-20. Score: 0 | Accepted answer
  
  This is a .htaccess workaround but I have tested and verified that it works. Please the following in your root .htaccess file or httpd-app.conf:
  
  ```
  RewriteCond %{REQUEST_URI} !^/wp-content/
  RewriteRule ^(.*)/civicrm(.*)$ /$1/CiviCRM/$2 [R=301,L]
  
  ```
  
  If someone from the community cares enough to look into why this is defaulting to CiviCRM when everything is set to civicrm, please do. Otherwise this band-aid will have to do.
  
  
  ---
  
  ### Answer by username_1 on 2020-07-09. Score: 0
  
  Can you check the CMS Settings `https://yoursite.org//wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Fsetting%2Fuf&reset=1` and see what you see?
  
  I suspect it looks like:
  
  [![enter image description here](https://i.sstatic.net/NIrxU.png)](https://i.sstatic.net/NIrxU.png)
  
  Can you also check the WP Page 'CiviCRM' I suspect the slug is not 'civicrm' lowercase. These values must match in order for the urls to resove.
  
  > **Comments:**
  > **username_0**: Hi username_1, thanks for the quick reply.  Both the page slug and Base Page are lowercase.  I've updated my question with the screenshots of each.  
  > **username_1**: That is really odd.  As they both match it should work.  Is it possible there is a civicrm folder in the web root  
  > **username_0**: Even stranger is that if you go to /civicrm it gives you a server side 404.  If you go to any other non existent folder (ie. /civistack) it will serve a html page 404.  I can't even do a 301 rewrite for the /civicrm folder to force it to CiviCRM.  This is really strange.  
  > **username_0**: Can anyone add further suggestions or insight?  This is breaking Mosaico templates and we're not able to send mailings.  See the two new examples in the original post.   Could I use a rewrite in the htaccess to rewrite all requests for civicrm?civiwp= to CiviCRM?civiwp= ? If so, how would I do that?  Thanks!  
  > **username_0**: Partial answer... adding the following in htaccess fixes the links but breaks the admin pages for civi... getting closer to a workaround...  RewriteRule ^(.*)/civicrm(.*)$ /CiviCRM/$2 [L] RewriteRule ^(.*)/civicrm(.*)$ /$1/CiviCRM/$2 [R,L]  
  
  ---
  
  