Answers.Body: <p>searching in the apache2 error.log I saw:</p>
  <p>[Tue Jan 26 14:15:46.726049 2021] [negotiation:error] [pid 16679] [client 127.0.0.1:44192] AH00687: Negotiation: discovered file(s) matching request: /home/(...)backdrop/civicrm (None could be negotiated)., referer: http://(...)backdrop/?q=civicrm&amp;reset=1</p>
  <p>Then I searched the web and found this <a href="https://www.lawebdelprogramador.com/foros/Apache/1422809-solucionado-Negotiation-discovered-files-matching-request.html" rel="nofollow noreferrer">post</a> that explains that in the line</p>
  <pre><code>Options Indexes FollowSymLinks MultiViews
  </code></pre>
  <p>of my virtual host configuration (file /etc/apache2/sites-enabled/backdrop.conf) I should delete the word &quot;MultiViews&quot;.</p>
  <p>I restarted apache and civicrm links started working when I enabled Clean URLs.</p>
  <p>Thanks,</p>
  <p>Andrés</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-27T18:14:38.450Z
Answers.LastActivityDate: 2021-01-27T18:14:38.450Z
Answers.UserDisplayName: Andrés Duhour
Answers.Body: <p>If Clean URLs are working in Backdrop, but not in Civi under Backdrop, then the problem is almost certainly in <code>civicrm.settings.php</code>.  My Backdrop/Civi sites (and also Drupal 7/Civi sites) have this snippet of code in <code>civicrm.settings.php</code>:</p>
  <pre><code>if (!defined('CIVICRM_CLEANURL')) {
    if ( function_exists('variable_get') &amp;&amp; variable_get('clean_url', '0') != '0') {
      define('CIVICRM_CLEANURL', 1 );
    }
    else {
      define('CIVICRM_CLEANURL', 0);
    }
  }
  </code></pre>
  <p>I suspect you're either missing this code, or perhaps there's something wrong with your &quot;clean_url&quot; variable in Backdrop.</p>
  <p>Try replacing that with just this and let us know if it solves the problem?</p>
  <pre><code>define('CIVICRM_CLEANURL', 1 );
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-19T01:35:07.970Z
Answers.Text: Hello, thank you for the response. I have this code on civicrm.settings.php, but changing for the last line,even so does not solve the problem.  I think I could have something wrong with the definition in the database in backdrop.
Answers.UserDisplayName: Andrés Duhour
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-11T14:24:43.620Z
Answers.Text: FYI this snippet has been updated to work better with Backdrop (using config management rather than variables): https://github.com/civicrm/civicrm-core/commit/48538a6f103ea739a54f01e8651aa34f33cba8fa
Answers.UserDisplayName: Laryn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-18T21:42:46.237Z
Answers.LastActivityDate: 2021-01-18T21:42:46.237Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I'm intalling civicrm on backdrop cms. Setup returns that installation was succesful.
  I see the link in the admin bar, but when clicked, the link gives me 404 error.</p>
  <p>If I add &quot;?q=&quot;, links works, the page display, but any other link doesn't work.</p>
  <p>Clean urls works fine on the site.</p>
  <p>I'm performing a migration from Drupal 7, were civicrm was updated and functioning.</p>
  <p>System:
  Backdrop 1.18.0
  MySQL Database MySQL, MariaDB, or equivalent version 5.5.5-10.3.27-MariaDB-0+deb10u1
  php Version: 7.3.19-1~deb10u1 (PHP information)
  Servidor web Apache/2.4.38 (Debian)
  Civicrm 5.33.1</p>
  <p>I would appreciate any advice.</p>
  <p>Andrés</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-18T16:01:29.707Z
Comments.Text: Do clean URLs work elsewhere on the Backdrop site?
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-18T19:32:50.433Z
Comments.Text: Yes. Civicrm URLs work when I add '?q=' manually.
Comments.UserDisplayName: Andrés Duhour
Tags: <backdrop>
Title: Clean URLs don't work after install in Backdrop
ThreadText: # Clean URLs don't work after install in Backdrop
  
  (Asked by: username_0 on 2021-01-18)
  
  I'm intalling civicrm on backdrop cms. Setup returns that installation was succesful.
  I see the link in the admin bar, but when clicked, the link gives me 404 error.
  
  If I add "?q=", links works, the page display, but any other link doesn't work.
  
  Clean urls works fine on the site.
  
  I'm performing a migration from Drupal 7, were civicrm was updated and functioning.
  
  System:
  Backdrop 1.18.0
  MySQL Database MySQL, MariaDB, or equivalent version 5.5.5-10.3.27-MariaDB-0+deb10u1
  php Version: 7.3.19-1~deb10u1 (PHP information)
  Servidor web Apache/2.4.38 (Debian)
  Civicrm 5.33.1
  
  I would appreciate any advice.
  
  username_0
  
  **Tags:** backdrop
  
  > **Comments:**
  > **username_1**: Do clean URLs work elsewhere on the Backdrop site?  
  > **username_0**: Yes. Civicrm URLs work when I add '?q=' manually.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2021-01-27. Score: 1 | Accepted answer
  
  searching in the apache2 error.log I saw:
  
  [Tue Jan 26 14:15:46.726049 2021] [negotiation:error] [pid 16679] [client 127.0.0.1:44192] AH00687: Negotiation: discovered file(s) matching request: /home/(...)backdrop/civicrm (None could be negotiated)., referer: http://(...)backdrop/?q=civicrm&reset=1
  
  Then I searched the web and found this [post](https://www.lawebdelprogramador.com/foros/Apache/1422809-solucionado-Negotiation-discovered-files-matching-request.html) that explains that in the line
  
  ```
  Options Indexes FollowSymLinks MultiViews
  
  ```
  
  of my virtual host configuration (file /etc/apache2/sites-enabled/backdrop.conf) I should delete the word "MultiViews".
  
  I restarted apache and civicrm links started working when I enabled Clean URLs.
  
  Thanks,
  
  username_0
  
  
  ---
  
  ### Answer by username_1 on 2021-01-18. Score: 2
  
  If Clean URLs are working in Backdrop, but not in Civi under Backdrop, then the problem is almost certainly in `civicrm.settings.php`. My Backdrop/Civi sites (and also Drupal 7/Civi sites) have this snippet of code in `civicrm.settings.php`:
  
  ```
  if (!defined('CIVICRM_CLEANURL')) {
    if ( function_exists('variable_get') && variable_get('clean_url', '0') != '0') {
      define('CIVICRM_CLEANURL', 1 );
    }
    else {
      define('CIVICRM_CLEANURL', 0);
    }
  }
  
  ```
  
  I suspect you're either missing this code, or perhaps there's something wrong with your "clean\_url" variable in Backdrop.
  
  Try replacing that with just this and let us know if it solves the problem?
  
  ```
  define('CIVICRM_CLEANURL', 1 );
  
  ```
  
  > **Comments:**
  > **username_0**: Hello, thank you for the response. I have this code on civicrm.settings.php, but changing for the last line,even so does not solve the problem.  I think I could have something wrong with the definition in the database in backdrop.  
  > **username_2**: FYI this snippet has been updated to work better with Backdrop (using config management rather than variables): https://github.com/civicrm/civicrm-core/commit/48538a6f103ea739a54f01e8651aa34f33cba8fa  
  
  ---
  
  