Answers.Body: <p>This may be a permalinks issue - if you are a wordpress and CiviCRM user - go to your permalinks page (settings, permalinks) and simply let it load - if you would like, you can also click save changes without making changes, but my understanding is just loading the page fixes the problem.</p>
  <p>I usually like to clear all caches before and after I do this, but its not necessary.</p>
  <p>As a CiviCRM / Wordpress Admin, you will find this to be a common page you visit when troubleshooting.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-21T12:00:09.503Z
Answers.Text: Already tried this and it's not the issue. When I'm logged in as admin, the links resolve correctly. The rewriting occurs for logged-out users only. My IP is whitelisted in the firewall so it's not due to IP filtering. Still trying to find the reason. It used to work fine. The only change on the server was a kernel upgrade by the server techs around the timeframe when it stopped working. That's way beyond my technical expertise.
Answers.UserDisplayName: Sarah
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-15T17:35:36.827Z
Answers.LastActivityDate: 2024-04-15T17:35:36.827Z
Answers.UserDisplayName: themak
Answers.Body: <p>Problem solved: The Yoast SEO plugin was set to rewrite dynamic URLs under the Advanced -&gt; Crawl Optimization settings. Disabling it fixed the issue.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-22T15:30:24.900Z
Answers.Text: Glad to hear it!
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-21T13:34:06.000Z
Answers.LastActivityDate: 2024-04-21T13:34:06.000Z
Answers.UserDisplayName: Sarah
Body: <p>What would cause CiviCRM to truncate the dynamic CiviCRM URL for public users, but load the correct one for logged-in ones?</p>
  <p>For the public, this URL:
  <a href="https://domain.org/civicrm/contribute/transact/?reset=1&amp;id=x" rel="nofollow noreferrer">https://domain.org/civicrm/contribute/transact/?reset=1&amp;id=x</a>
  loads as:
  <a href="https://domain.org/civicrm/" rel="nofollow noreferrer">https://domain.org/civicrm/</a></p>
  <p>... so instead of the contribution form, it loads the CiviCRM base page for public users. The permissions are set correctly so they should be able to view the form.</p>
  <p>WordPress 6.5.2
  CiviCRM 5.70.1
  Server running AlmaLinux</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-04-14T11:14:50.083Z
Comments.Text: This may be related to your CMS rather than CiviCRM so it would be helpful if you could edit your question to include details of this - i.e. is it Drupal, WordPress or Backdrop or Joomla? Also versions of both the CMS and CiviCRM would be helpful.
Comments.UserDisplayName: William Mortada
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-04-14T12:41:57.040Z
Comments.Text: System info added. Thanks for the reminder.
Comments.UserDisplayName: Sarah
Tags: <wordpress><contribution-page><base-page>
Title: Base page shown instead of contribution page to public users
ThreadText: # Base page shown instead of contribution page to public users
  
  (Asked by: username_0 on 2024-04-12)
  
  What would cause CiviCRM to truncate the dynamic CiviCRM URL for public users, but load the correct one for logged-in ones?
  
  For the public, this URL:
  <https://domain.org/civicrm/contribute/transact/?reset=1&id=x>
  loads as:
  <https://domain.org/civicrm/>
  
  ... so instead of the contribution form, it loads the CiviCRM base page for public users. The permissions are set correctly so they should be able to view the form.
  
  WordPress 6.5.2
  CiviCRM 5.70.1
  Server running AlmaLinux
  
  **Tags:** wordpress, contribution-page, base-page
  
  > **Comments:**
  > **username_1**: This may be related to your CMS rather than CiviCRM so it would be helpful if you could edit your question to include details of this - i.e. is it Drupal, WordPress or Backdrop or Joomla? Also versions of both the CMS and CiviCRM would be helpful.  
  > **username_0**: System info added. Thanks for the reminder.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2024-04-21. Score: 3 | Accepted answer
  
  Problem solved: The Yoast SEO plugin was set to rewrite dynamic URLs under the Advanced -> Crawl Optimization settings. Disabling it fixed the issue.
  
  > **Comments:**
  > **username_2**: Glad to hear it!  
  
  ---
  
  ### Answer by username_2 on 2024-04-15. Score: 1
  
  This may be a permalinks issue - if you are a wordpress and CiviCRM user - go to your permalinks page (settings, permalinks) and simply let it load - if you would like, you can also click save changes without making changes, but my understanding is just loading the page fixes the problem.
  
  I usually like to clear all caches before and after I do this, but its not necessary.
  
  As a CiviCRM / Wordpress Admin, you will find this to be a common page you visit when troubleshooting.
  
  > **Comments:**
  > **username_0**: Already tried this and it's not the issue. When I'm logged in as admin, the links resolve correctly. The rewriting occurs for logged-out users only. My IP is whitelisted in the firewall so it's not due to IP filtering. Still trying to find the reason. It used to work fine. The only change on the server was a kernel upgrade by the server techs around the timeframe when it stopped working. That's way beyond my technical expertise.  
  
  ---
  
  