Find Jobs
Hire Freelancers

facebook redirect problem

€39-41 EUR

已关闭
已发布超过 8 年前

€39-41 EUR

货到付款
hi, i pay for the solution 40 euro! is a very small problem RewriteCond %{HTTP_HOST} !^www\.example\.com$ RewriteCond %{HTTP_USER_AGENT} !(Facebot|facebookexternalhit/1.1|facebookexternalhit/1.0) [NC] RewriteRule ^(.*)$ [login to view URL]$1 [L,R=301] RewriteCond %{HTTPS} off RewriteCond %{HTTP_USER_AGENT} !(Facebot|facebookexternalhit/1.1|facebookexternalhit/1.0) [NC] RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] this are my first lines in .htacess, so i want to exclude facebook crawler from redirect from http to https. it should only happen for google and that. but still it shows me Circular Redirect Path Circular redirect path detected (see 'Redirect Path' section for details). i used fresh JOOMLA 3.4.8 htacess and added only code above, [login to view URL] you have to imagine will replaced ;) but crawler still get s confused with the 301, because i set in https then og url to http to get the likes. server person says all is fine by them! the code is used by many developers above, so i m confused what it can be i was already thinking to make a rewritecond to an php file and this php file check s then if true or false like that: <?php $agent = $_SERVER['HTTP_USER_AGENT']; $agent = trim($agent); $agent = strtolower($agent); if ( strpos($agent,'facebookexternalhit/1.1')===0 || strpos($agent,'facebookexternalhit/1.0')===0 ){ return false; }else{ return true; } ?> BECAUSE !! php detects the crawler with that code, i checked already! but it will overwritten from htacess. i have no idea how to connect that php file with htacess without making an error. plz only apply if you are expert! this is job above!
项目 ID: 9684380

关于此项目

5提案
远程项目
活跃8 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
5威客以平均价€40 EUR来参与此工作竞价
用户头像
Hello, before all, i would like to say you "We are new on Freelancer but we are expert in PHP/Joomla web Development, Designing, Customization, Migration, API Integration". So Please If give me chance to work on your project , i am sure you will 100% satisfied from my work. Sir Honestly i need your help and support to get more work on freelancer so please give me change to work on your project and chance to prov my self. Please just give me chance, and if you want than pay me after your problem get solve. So can we discuss please? Thanks/Regards
€39 EUR 在3天之内
5.0 (149条评论)
7.0
7.0
用户头像
Hello! There are some possible 'misfits' in those two rewrite blocks, but before I go ahead and do any changes to them I need to make sure there isn't anything else-part in the htacess that is causing the loop below those 2 blocks, so please forward the whole htaccess. I am not interested in any domains etc, so you may very well mask the actual domain names with domain1...domainx(as many as there are), I am OK with that. Two important questions: 1) Are you forcing non-www to www version of domain for some/everybody? 2) The 'native' site view (regular users, not bots etc) is forced over SSL or not, or it's mixed? Regards, Dobri
€40 EUR 在0天之内
4.9 (173条评论)
6.2
6.2

关于客户

AUSTRIA的国旗
Gössendorf, Austria
4.9
33
付款方式已验证
会员自12月 21, 2011起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。