New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Pulling hair out for weeks still failed link cloaking with LEB script, please help!
Hi,
I trying out wp robot with link cloaking but failed with nginx configuration. Anyone have any ideas? Greatly appreciate it.
here it my example nginx conf file:
location / {
root /var/www/YOURDOMAIN.com;
index index.php;
if (-f $request_filename) {
break;
}
if (-d $request_filename) {
break;
}
if (!-e $request_filename) {
rewrite ^/go/([^/]*)/([0-9]+)/([0-9]+)/?$ http://YOURDOMAIN.com/wp-content/plugins/WPRobot3/cloak.php?post_id=$2&link_num=$3&cloaked_url=$uri last;
rewrite ^go/([^/]+)[/]?$ http://YOURDOMAIN.com/wp-content/plugins/WPRobot3/cloak.php?name=$1&cloaked_url=$uri last;
rewrite ^(.+)$ /index.php?q=$1 last;
}
}
I altered almost all and wp still failed. Many thanks
Comments
1st things 1st, where did you got the above code? Did you get it from http://wprobot.net/forum/topic.php?id=1662 ?
I think its quite different with the instruction from http://wprobot.net/blog/how-to-set-up-wp-robot-link-cloaking/
Assuming your blog is in root domain, here is some changes that would (maybe) work
If you're not in root domain (for example you're in /blog subdirectory, change "location /", "location /go", and "http://YOURDOMAIN.com/" accordingly.
Don't forget to change http://YOURDOMAIN.com to your current domain, and make sure that /wp-content/plugins/WPRobot3/cloak.php exist in your blog directory.
I didn't actually tried the above code yet (since I need to bought wp robot license to test it), so I'm sorry if my post is useless
Majority of us here doesn't have the license, so I would recommend you to email directly wp robot support, or asking the updated rules in wp robot support forum.
Thank you so much Melita for your guidance and helps. I really appreciated it. I read and tried both link above.
I keep getting and error when restarting nginx: [emerg] unknown "0" variable
nginx: configuration file /etc/nginx/nginx.conf test failed
here is my yourdomain.com.conf
===========================
server {
server_name YOURDOMAIN.com;
root /var/www/YOURDOMAIN.COM;
include /etc/nginx/fastcgi_php;
location / {
index index.php;
if (!-e $request_filename) {
rewrite ^(.)$ /index.php last;
}
}
location /go {
rewrite ^/go/([^/])/([0-9]+)/([0-9]+)/?$ http://YOURDOMAIN.com/wp-content/plugins/WPRobot3/cloak.php?post_id=$2&link_num=$3&cloaked_url=$0 redirect;
rewrite ^/go/([^/]+)[/]?$ http://YOURDOMAIN.com/wp-content/plugins/WPRobot3/cloak.php?name=$1&cloaked_url=$0 redirect;
}
}
BTW, I changed and check directory that cloak.php was there with correct directory link. Nginx is so hard to work with.
Thanks again!