Title: Problem with tracking pixel
Last modified: August 22, 2016

---

# Problem with tracking pixel

 *  [Kim Soler](https://wordpress.org/support/users/kimso/)
 * (@kimso)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/problem-with-tracking-pixel/)
 * Hello I have a problem to make work tracking pixel in the next configuration:
 * WordPress is installed in a the directory /web/ at root folder of the server.
 * In the root I have the index.php that loads wp environment and template with “
   require( dirname( __FILE__ ) . ‘/web/wp-blog-header.php’ );”.
 * The .htaccess at root is configured with the code:
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule
   ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /index.php [L] </IfModule>
 * So I have [http://www.myurl.com](http://www.myurl.com) that loads a wordpress
   installed in [http://www.myurl.com/web/](http://www.myurl.com/web/).
 * If I add the code suggested by knews the tracking code doesn’t work.
 * #Begin Knews (add this lines just after the RewriteBase line)
    RewriteRule ^web/
   wp-content/uploads/knewsimages/([^/]+).(jpg|jpeg|gif|png)$ /web/wp-content/plugins/
   knews/direct/track.php?img=$1 [L,NC] #End Knews (that’s all, your htaccess should
   continue as is…)
 * Can anyone help me?
 * Thanks
 * [https://wordpress.org/plugins/knews/](https://wordpress.org/plugins/knews/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [creverter](https://wordpress.org/support/users/creverter/)
 * (@creverter)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/problem-with-tracking-pixel/#post-5259243)
 * Hello!
 * The htaccess line overrides the http petition to the webserver to a new one, 
   in your case, I suspect you should remove the web/ in the left of the line, please,
   try this:
 * RewriteRule ^wp-content/uploads/knewsimages/([^/]+).(jpg|jpeg|gif|png)$ /web/
   wp-content/plugins/knews/direct/track.php?img=$1 [L,NC]

Viewing 1 replies (of 1 total)

The topic ‘Problem with tracking pixel’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/knews_c1dde7.svg)
 * [Knews Multilingual Newsletters](https://wordpress.org/plugins/knews/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/knews/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/knews/)
 * [Active Topics](https://wordpress.org/support/plugin/knews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/knews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/knews/reviews/)

## Tags

 * [tracking pixel](https://wordpress.org/support/topic-tag/tracking-pixel/)

 * 1 reply
 * 2 participants
 * Last reply from: [creverter](https://wordpress.org/support/users/creverter/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/problem-with-tracking-pixel/#post-5259243)
 * Status: not resolved