Body: <p>I've a CiviCRM 5.37 installed with a WP 5.72 in a Linux server.
  As a permalink WP setting I defined the &quot;article name&quot; syntax.</p>
  <p>Well, my problem is the follow:
  When I create a new mail and I try to look a public view or the web browser version, I see a 404 http error.
  The URL that I can view is similar to: /civicrm/mailing/view/?id=13&amp;reset=1</p>
  <p>If I change the URL adding &quot;index.php&quot; all work fine: /<strong>index.php</strong>/civicrm/mailing/view/?id=13&amp;reset=1</p>
  <p>The same problem when I call a CiviCRM API.
  I need to use an URL like this: /**index.php/**wp-json/civicrm/v3/rest</p>
  <p>This is a big problem 'cause all CiviCRM token that generate an URL doesn't work.</p>
  <p>Why I need to add &quot;index.php&quot;?
  How can I work correctly without adding &quot;index.php&quot; in all CiviCRM url?</p>
  <p>Many thanks!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-06-07T08:50:47.443Z
Comments.Text: Can you post your `.htaccess` file? Anonymised, of course.
Comments.UserDisplayName: Christian Wach
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-06-08T13:27:30.380Z
Comments.Text: Hi Christian,
  I solved my issue changing the Wp permalink whit "custom structure" mode like this: <domain>/index.php/%postname%/
Comments.UserDisplayName: Civytech
Tags: <wordpress><api><error><rest>
Title: Issue with WP Rest API
ThreadText: # Issue with WP Rest API
  
  (Asked by: username_0 on 2021-06-04)
  
  I've a CiviCRM 5.37 installed with a WP 5.72 in a Linux server.
  As a permalink WP setting I defined the "article name" syntax.
  
  Well, my problem is the follow:
  When I create a new mail and I try to look a public view or the web browser version, I see a 404 http error.
  The URL that I can view is similar to: /civicrm/mailing/view/?id=13&reset=1
  
  If I change the URL adding "index.php" all work fine: /**index.php**/civicrm/mailing/view/?id=13&reset=1
  
  The same problem when I call a CiviCRM API.
  I need to use an URL like this: /\*\*index.php/\*\*wp-json/civicrm/v3/rest
  
  This is a big problem 'cause all CiviCRM token that generate an URL doesn't work.
  
  Why I need to add "index.php"?
  How can I work correctly without adding "index.php" in all CiviCRM url?
  
  Many thanks!
  
  **Tags:** wordpress, api, error, rest
  
  > **Comments:**
  > **username_1**: Can you post your `.htaccess` file? Anonymised, of course.  
  > **username_0**: Hi Christian, I solved my issue changing the Wp permalink whit "custom structure" mode like this: <domain>/index.php/%postname%/  
  
  ---
  
  ## 0 answers
  
  