Answers.Body: <p>If you have access to the database then try checking the civicrm_mailing_trackable_url table to see exactly where the URL's are going to. This should identify if they're incorrect. You'll need to know the mailing id of the job you've run but you should be able to get that easily enough from the URL of the mailing reports.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-18T18:04:08.660Z
Answers.Text: I dont think his browser is even hitting url.php
Answers.UserDisplayName: Donald Lobo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-19T08:32:35.807Z
Answers.Text: Thanks. Yes there's a list of all the URLs I've used there -and they're correct. Not sure what to do next...
Answers.UserDisplayName: thomas jaunism
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-18T16:49:26.173Z
Answers.LastActivityDate: 2015-05-18T16:49:26.173Z
Answers.UserDisplayName: Parvez Saleh
Answers.Body: <p>This can have a lot of causes - but my guess is that there's a permission problem with extern.url.  Please check to see that the permissions are correct for the user context in which your web server software runs.  If it all looks OK, please update your question with that info (permissions of extern.url, owner/group of extern.url, and the user under which the web server software runs).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-18T11:09:20.477Z
Answers.Text: Thanks. I'm not sure what the permissions should look like. The owner has read, read and execute rights. The group just read. Public permissions are read and execute.
Answers.UserDisplayName: thomas jaunism
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-18T02:22:11.823Z
Answers.LastActivityDate: 2015-05-18T02:22:11.823Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>I just had this problem. On a cPanel server I set permissions with the following commands and it solved the problem. From Drupal root:</p>
  
  <p><code>cd sites/all/modules
  find civicrm/. -type d -exec chmod u=rwx,g=rx,o=rx {} \;
  find civicrm/. -type f -exec chmod u=rw,g=r,o=r {} \;</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-26T02:04:23.060Z
Answers.LastActivityDate: 2017-05-26T02:04:23.060Z
Answers.UserDisplayName: Shai
Answers.Body: <p>What happens when you goto the url:</p>
  
  <p>mysite/wp-content/plugins/civicrm/civicrm/extern/url.php?u=30&amp;qid=44</p>
  
  <p>i assume u get a page does not exist</p>
  
  <p>Can you tweak the above url to a url that actually works on your site? Once you get that working, u'll need to tweak the resource url in your admin section</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-17T19:32:41.947Z
Answers.Text: Thanks for this. Yes I get a 'page does not exist' message. I should tweak it how sorry? ie: which part?
Answers.UserDisplayName: thomas jaunism
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-17T23:46:01.217Z
Answers.Text: It depends on your site config and where civicrm is actually located. can you post the directory where civicrm is installed. Am interest in the path from the wordpress root directory
Answers.UserDisplayName: Donald Lobo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-18T00:47:05.173Z
Answers.Text: Added info above.
Answers.UserDisplayName: thomas jaunism
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-17T13:43:12.403Z
Answers.LastActivityDate: 2015-05-17T13:43:12.403Z
Answers.UserDisplayName: Donald Lobo
Answers.Body: <p>When I had this problem with Drupal, I had to delete everything inside the templates_c folder. I believe it would be the same with your Wordpress installation and then make sure that you the contents of <code>templates_c</code> are owned by the group.</p>
  
  <p><strong>Wordpress</strong></p>
  
  <p><code>rm -r /uploads/civicrm/templates_c/*</code></p>
  
  <p><strong>Drupal</strong></p>
  
  <p><code>rm -r /sites/default/templates_c/*</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-26T01:47:49.713Z
Answers.LastActivityDate: 2018-04-26T01:47:49.713Z
Answers.UserDisplayName: Christia
Answers.Body: <p>Check the http error log. I get the following message. </p>
  
  <pre><code>[Thu May 25 04:49:23 2017] [error] [client 180.76.15.155] Re-negotiation request failed
  
  [Thu May 25 04:49:23 2017] [error] SSL Library Error: 336068946 error:14080152:SSL routines:SSL3_ACCEPT:unsafe legacy renegotiation disabled
  </code></pre>
  
  <p>A security error, so rather than reconfiguring the server to allow these redirects I am turning off link tracking.</p>
  
  <p>If this is the problem, then <a href="https://stackoverflow.com/questions/23883635/apache-ssl3-acceptunsafe-legacy-renegotiation-disabled">https://stackoverflow.com/questions/23883635/apache-ssl3-acceptunsafe-legacy-renegotiation-disabled</a> may help.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-25T06:31:32.643Z
Answers.LastActivityDate: 2017-05-25T06:31:32.643Z
Answers.UserDisplayName: Interlated
Body: <p>When I add links to external websites (such as www.wikipedia.org) to mailings and check 'track click through' the links go to a page on  my website that says 'page doesn't exist'. The url is something like this: mysite/wp-content/plugins/civicrm/civicrm/extern/url.php?u=30&amp;qid=44.</p>
  
  <p>This is obviously a key reason for wanting to use civiCRM so it'd be great to have link tracking working.</p>
  
  <p>I see people have had this problem in the past (see <a href="http://forum.civicrm.org/index.php/topic,20360.0.html" rel="noreferrer">here</a> and <a href="http://forum.civicrm.org/index.php?topic=18451.0" rel="noreferrer">here</a>) but I can't seem to find a solution for it. </p>
  
  <p>I have looked at extern/url.php and TrackableURLOpen.php and there don't seem to be any problems. (gists: <a href="https://gist.github.com/anonymous/2ba8de7c37dd37c04bc7" rel="noreferrer">trackableURLOpen.php</a> <a href="https://gist.github.com/anonymous/a92666d807ac69167e03" rel="noreferrer">url.php</a>)</p>
  
  <p>I'm using wordpress and civicrm 4.6. </p>
  
  <p>My civicrm files are here: <a href="http://mysite/wp-content/plugins/civicrm/civicrm/" rel="noreferrer">http://mysite/wp-content/plugins/civicrm/civicrm/</a></p>
  
  <p>My temp files are here: <a href="http://mysite/wp-content/plugins/files/civicrm/" rel="noreferrer">http://mysite/wp-content/plugins/files/civicrm/</a></p>
  
  <p>My civicrm.settings.php file says:</p>
  
  <pre><code>global $civicrm_root;
  
  $civicrm_root = __DIR__ . '/civicrm/';
  if (!defined('CIVICRM_TEMPLATE_COMPILEDIR')) {
  define( 'CIVICRM_TEMPLATE_COMPILEDIR', __DIR__ . '/files/civicrm/templates_c/' );
  }
  </code></pre>
  
  <p>Should the root be <strong>DIR</strong> . '/civicrm/civicrm/'? because that doesn't work.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-14T02:16:41.080Z
Comments.Text: This is the exact problem I am having. Has this problem been resolved?
Comments.UserDisplayName: fdarn
Tags: <civimail><wordpress><email><links>
Title: Why do 'track click through' links not redirect to correct address?
ThreadText: # Why do 'track click through' links not redirect to correct address?
  
  (Asked by: username_0 on 2015-05-17)
  
  When I add links to external websites (such as www.wikipedia.org) to mailings and check 'track click through' the links go to a page on  my website that says 'page doesn't exist'. The url is something like this: mysite/wp-content/plugins/civicrm/civicrm/extern/url.php?u=30&qid=44.
  This is obviously a key reason for wanting to use civiCRM so it'd be great to have link tracking working.
  I see people have had this problem in the past (see here and here) but I can't seem to find a solution for it. 
  I have looked at extern/url.php and TrackableURLOpen.php and there don't seem to be any problems. (gists: trackableURLOpen.php url.php)
  I'm using wordpress and civicrm 4.6. 
  My civicrm files are here: http://mysite/wp-content/plugins/civicrm/civicrm/
  My temp files are here: http://mysite/wp-content/plugins/files/civicrm/
  My civicrm.settings.php file says:
  global $civicrm_root;
  
  $civicrm_root = __DIR__ . '/civicrm/';
  if (!defined('CIVICRM_TEMPLATE_COMPILEDIR')) {
  define( 'CIVICRM_TEMPLATE_COMPILEDIR', __DIR__ . '/files/civicrm/templates_c/' );
  }
  
  Should the root be DIR . '/civicrm/civicrm/'? because that doesn't work.
  
  **Tags:** civimail, wordpress, email, links
  
  > **Comments:**
  > **username_1**: This is the exact problem I am having. Has this problem been resolved?  
  
  ---
  
  ## 6 answers
  
  ### Answer by username_2 on 2015-05-18. Score: 2
  
  If you have access to the database then try checking the civicrm\_mailing\_trackable\_url table to see exactly where the URL's are going to. This should identify if they're incorrect. You'll need to know the mailing id of the job you've run but you should be able to get that easily enough from the URL of the mailing reports.
  
  > **Comments:**
  > **username_3**: I dont think his browser is even hitting url.php  
  > **username_0**: Thanks. Yes there's a list of all the URLs I've used there -and they're correct. Not sure what to do next...  
  
  ---
  
  ### Answer by username_4 on 2015-05-18. Score: 1
  
  This can have a lot of causes - but my guess is that there's a permission problem with extern.url. Please check to see that the permissions are correct for the user context in which your web server software runs. If it all looks OK, please update your question with that info (permissions of extern.url, owner/group of extern.url, and the user under which the web server software runs).
  
  > **Comments:**
  > **username_0**: Thanks. I'm not sure what the permissions should look like. The owner has read, read and execute rights. The group just read. Public permissions are read and execute.  
  
  ---
  
  ### Answer by username_5 on 2017-05-26. Score: 0
  
  I just had this problem. On a cPanel server I set permissions with the following commands and it solved the problem. From Drupal root:
  
  `cd sites/all/modules
  find civicrm/. -type d -exec chmod u=rwx,g=rx,o=rx {} \;
  find civicrm/. -type f -exec chmod u=rw,g=r,o=r {} \;`
  
  
  ---
  
  ### Answer by username_3 on 2015-05-17. Score: 0
  
  What happens when you goto the url:
  
  mysite/wp-content/plugins/civicrm/civicrm/extern/url.php?u=30&qid=44
  
  i assume u get a page does not exist
  
  Can you tweak the above url to a url that actually works on your site? Once you get that working, u'll need to tweak the resource url in your admin section
  
  > **Comments:**
  > **username_0**: Thanks for this. Yes I get a 'page does not exist' message. I should tweak it how sorry? ie: which part?  
  > **username_3**: It depends on your site config and where civicrm is actually located. can you post the directory where civicrm is installed. Am interest in the path from the wordpress root directory  
  > **username_0**: Added info above.  
  
  ---
  
  ### Answer by username_6 on 2018-04-26. Score: 0
  
  When I had this problem with Drupal, I had to delete everything inside the templates\_c folder. I believe it would be the same with your Wordpress installation and then make sure that you the contents of `templates_c` are owned by the group.
  
  **Wordpress**
  
  `rm -r /uploads/civicrm/templates_c/*`
  
  **Drupal**
  
  `rm -r /sites/default/templates_c/*`
  
  
  ---
  
  ### Answer by username_7 on 2017-05-25. Score: 0
  
  Check the http error log. I get the following message. 
  [Thu May 25 04:49:23 2017] [error] [client 180.76.15.155] Re-negotiation request failed
  
  [Thu May 25 04:49:23 2017] [error] SSL Library Error: 336068946 error:14080152:SSL routines:SSL3_ACCEPT:unsafe legacy renegotiation disabled
  
  A security error, so rather than reconfiguring the server to allow these redirects I am turning off link tracking.
  If this is the problem, then https://stackoverflow.com/questions/23883635/apache-ssl3-acceptunsafe-legacy-renegotiation-disabled may help.
  
  
  ---
  
  