CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • 404 errors because URLs in system workflow messages begin with index.php?q=
Pages: [1]

Author Topic: 404 errors because URLs in system workflow messages begin with index.php?q=  (Read 522 times)

Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
404 errors because URLs in system workflow messages begin with index.php?q=
October 24, 2014, 01:41:40 pm
I'm using the nginx webserver with CiviCRM, with the perusio/drupal-with-nginx configuration. Overall it's great, but it's required some slight tweaking, as I've documented on this other post.

Now I'm running into a new issue. The system workflow message email that gets sent out for the "Contributions - Recurring Start and End Notification" action (and presumably other system workflow messages) contain URLs that unnecessarily begin with index.php?q=. So for example, one donor received an email containing the following (redacted) URL:
https://example.org/index.php?q=civicrm/contribute/updatebilling&reset=1&crid=117&cs=3e5b6276c37b9011844aa787151d0024_1414056067_inf
Due to my nginx config, this URL gave the donor a 404 error.

So I'd rather the URL be:
https://example.org/civicrm/contribute/updatebilling&reset=1&crid=117&cs=3e5b6276c37b9011844aa787151d0024_1414056067_inf
(only change is removing index.php?q= )

I'm using the default message template and the code that produced this URL is:
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}

Ideally I'd like to get CiviCRM to produce the clean URL. Any thoughts on how to do that??

But since I'd really like to fix this problem, I'd also be open to changing my nginx config. Does anyone know how to alter the nginx config to allow access to index.php?



Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
Re: 404 errors because URLs in system workflow messages begin with index.php?q=
October 28, 2014, 07:09:47 am
Well, I got it working.

I was hoping to find a way to get CiviCRM to generate clean URLs here, but alas I gave up and changed the nginx config. More details about my changed are added to my other thread about nginx with CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • 404 errors because URLs in system workflow messages begin with index.php?q=

This forum was archived on 2017-11-26.