Answers.Body: <p>I figured this out and my solution is as follows:</p>
  
  <ol>
  <li><p>Change the CiviCRM Resource URL to something of your choice e.g. <a href="https://mywebsite.co.uk/mycrm" rel="nofollow noreferrer">https://mywebsite.co.uk/mycrm</a></p></li>
  <li><p>Add a mod_rewrite rule to your htaccess file (above the Wordpress rules):</p></li>
  </ol>
  
  <pre>
  &lt;IfModule mod_rewrite.c&gt;
  RewriteBase /
  RewriteRule ^mycrm(.*)$ /wp-content/plugins/civicrm/civicrm$1 [R=301,NC,L]
  &lt;/IfModule&gt;
  </pre>
  
  <p>Hope this helps someone.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-18T11:17:34.270Z
Answers.LastActivityDate: 2019-04-18T11:17:34.270Z
Answers.UserDisplayName: Slingshot Design
Body: <p>I'm using the Track Opens option in CiviMail.</p>
  
  <p>In CiviCRM for Wordpress the regular mail tracking url looks something like this: <a href="https://mywebsite.co.uk/wp-content/plugins/civicrm/civicrm/extern/url.php?u=123&amp;qid=1234" rel="nofollow noreferrer">https://mywebsite.co.uk/wp-content/plugins/civicrm/civicrm/extern/url.php?u=123&amp;qid=1234</a></p>
  
  <p>It is fine for a lot of recipients and tracking works perfectly.</p>
  
  <p>However I have had reports that because the url links to a file within the Wordpress plugins directory, some systems suspect the links to be malware or spyware so the Urls are removed from the email.</p>
  
  <p>Without hacking any civi files, is it possible to change the Url to something pretty like: <a href="https://mywebsite.co.uk/civimail/?u=123&amp;qid=1234" rel="nofollow noreferrer">https://mywebsite.co.uk/civimail/?u=123&amp;qid=1234</a></p>
  
  <p>I'm thinking it would involve the htaccess file?</p>
  
  <p>Thanks</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-17T15:44:58.933Z
Comments.Text: You might get more views posting on stackoverflow, since it's more of a web server config question than civicrm.
Comments.UserDisplayName: Demerit
Tags: <civimail>
Title: CiviMail Change the Track Opens Tracking URL to a pretty URL
ThreadText: # CiviMail Change the Track Opens Tracking URL to a pretty URL
  
  (Asked by: username_0 on 2019-04-17)
  
  I'm using the Track Opens option in CiviMail.
  
  In CiviCRM for Wordpress the regular mail tracking url looks something like this: <https://mywebsite.co.uk/wp-content/plugins/civicrm/civicrm/extern/url.php?u=123&qid=1234>
  
  It is fine for a lot of recipients and tracking works perfectly.
  
  However I have had reports that because the url links to a file within the Wordpress plugins directory, some systems suspect the links to be malware or spyware so the Urls are removed from the email.
  
  Without hacking any civi files, is it possible to change the Url to something pretty like: <https://mywebsite.co.uk/civimail/?u=123&qid=1234>
  
  I'm thinking it would involve the htaccess file?
  
  Thanks
  
  **Tags:** civimail
  
  > **Comments:**
  > **username_1**: You might get more views posting on stackoverflow, since it's more of a web server config question than civicrm.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-04-18. Score: 1
  
  I figured this out and my solution is as follows:
  
  1. Change the CiviCRM Resource URL to something of your choice e.g. <https://mywebsite.co.uk/mycrm>
  2. Add a mod\_rewrite rule to your htaccess file (above the Wordpress rules):
  
  ```
  
  <IfModule mod_rewrite.c>
  RewriteBase /
  RewriteRule ^mycrm(.*)$ /wp-content/plugins/civicrm/civicrm$1 [R=301,NC,L]
  </IfModule>
  
  ```
  
  Hope this helps someone.
  
  
  ---
  
  