Answers.Body: <p>SOLVED at <a href="https://lab.civicrm.org/dev/wordpress/issues/27/" rel="nofollow noreferrer">https://lab.civicrm.org/dev/wordpress/issues/27/</a></p>
  
  <hr>
  
  <p>Old workarounds:</p>
  
  <p>I tracked down the problem somewhat and opened an issue at the bug tracker.  I describe a code change which makes this work...but I don't know whether it's the best solution.</p>
  
  <p><a href="https://issues.civicrm.org/jira/browse/CRM-20053" rel="nofollow noreferrer">https://issues.civicrm.org/jira/browse/CRM-20053</a></p>
  
  <p>UPDATE: I couldn't get that old fix to work any more after upgrading to CiviCRM 4.7.21.  So I put in an Apache rule in my .htaccess file to redirect:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteCond %{REQUEST_URI}  ^/wp-admin/admin\.php$
  RewriteCond %{QUERY_STRING} q=civicrm/mailing/confirm
  RewriteRule ^(.*)$ /civicrm [L,R=302]
  &lt;/IfModule&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-24T07:33:27.827Z
Answers.Text: Same problem exists in 5.11.0, plus somewhere along the line, the confirmation link began url-encoding the slash characters, so I had to add a similar rule to the .htaccess except with q=civicrm%2Fmailing%2Fconfirm
Answers.UserDisplayName: Norris
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2017-02-19T00:03:38.370Z
Answers.LastActivityDate: 2019-06-01T00:24:08.537Z
Answers.LastEditDate: 2019-06-01T00:24:08.537Z
Answers.UserDisplayName: Norris
Body: <p>I'm setting up a mailing list in CiviCRM 4.7.14 and the latest Wordpress.  In Administer->System Settings->CMS Database Integration, I have the base page set to /civicrm.  Yet when a mailing list subscribe confirmation is sent, the subscribe.url token uses <a href="http://mydomain.com/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm/mailing/confirm&amp;reset=1&amp;etc" rel="nofollow noreferrer">http://mydomain.com/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm/mailing/confirm&amp;reset=1&amp;etc</a>...</p>
  
  <p>By default, the link goes to the standard Wordpress login screen.  If I change the URL manually in the browser to use /civicrm instead of /wp-admin/admin.php it processes the subscription.  Or if I log in, the admin.php link processes the subscription.  </p>
  
  <p>I understand the "base page" stuff has been evolving through recent versions.  I did upgrade this CiviCRM install from 4.6.x, so maybe there was a glitch with that.  Is there something I can do to correct things?  I tried changing the base page to something else, then back to /civicrm to reset things, but it didn't help.</p>
  
  <p>I haven't tested the unsubscribeUrl token, but can do so if it would help with debugging.</p>
  
  <p>Thanks for any thoughts!</p>
  
Tags: <wordpress><civimail><subscribe><base-page>
Title: Wordpress subscribe.url not using base page
ThreadText: # Wordpress subscribe.url not using base page
  
  (Asked by: username_0 on 2017-01-03)
  
  I'm setting up a mailing list in CiviCRM 4.7.14 and the latest Wordpress. In Administer->System Settings->CMS Database Integration, I have the base page set to /civicrm. Yet when a mailing list subscribe confirmation is sent, the subscribe.url token uses <http://mydomain.com/wp-admin/admin.php?page=CiviCRM&q=civicrm/mailing/confirm&reset=1&etc>...
  
  By default, the link goes to the standard Wordpress login screen. If I change the URL manually in the browser to use /civicrm instead of /wp-admin/admin.php it processes the subscription. Or if I log in, the admin.php link processes the subscription.
  
  I understand the "base page" stuff has been evolving through recent versions. I did upgrade this CiviCRM install from 4.6.x, so maybe there was a glitch with that. Is there something I can do to correct things? I tried changing the base page to something else, then back to /civicrm to reset things, but it didn't help.
  
  I haven't tested the unsubscribeUrl token, but can do so if it would help with debugging.
  
  Thanks for any thoughts!
  
  **Tags:** wordpress, civimail, subscribe, base-page
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-02-19. Score: 0 | Accepted answer
  
  SOLVED at https://lab.civicrm.org/dev/wordpress/issues/27/
  
  Old workarounds:
  I tracked down the problem somewhat and opened an issue at the bug tracker.  I describe a code change which makes this work...but I don't know whether it's the best solution.
  https://issues.civicrm.org/jira/browse/CRM-20053
  UPDATE: I couldn't get that old fix to work any more after upgrading to CiviCRM 4.7.21.  So I put in an Apache rule in my .htaccess file to redirect:
  
  RewriteEngine On
  RewriteCond %{REQUEST_URI}  ^/wp-admin/admin\.php$
  RewriteCond %{QUERY_STRING} q=civicrm/mailing/confirm
  RewriteRule ^(.*)$ /civicrm [L,R=302]
  
  > **Comments:**
  > **username_0**: Same problem exists in 5.11.0, plus somewhere along the line, the confirmation link began url-encoding the slash characters, so I had to add a similar rule to the .htaccess except with q=civicrm%2Fmailing%2Fconfirm  
  
  ---
  
  