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 that loads a wordpress installed in 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
The topic ‘Problem with tracking pixel’ is closed to new replies.