Find Jobs
Hire Freelancers

facebook redirect problem

€39-41 EUR

Fermé
Publié il y a environ 8 ans

€39-41 EUR

Payé lors de la livraison
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!
N° de projet : 9684380

Concernant le projet

5 propositions
Projet à distance
Actif à il y a 8 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
5 freelances proposent en moyenne €40 EUR pour ce travail
Avatar de l'utilisateur
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 en 3 jours
5,0 (149 commentaires)
7,0
7,0
Avatar de l'utilisateur
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 en 0 jour
4,9 (173 commentaires)
6,2
6,2

À propos du client

Drapeau de AUSTRIA
Gössendorf, Austria
4,9
33
Méthode de paiement vérifiée
Membre depuis déc. 21, 2011

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.