Find Jobs
Hire Freelancers

htaccess rewrite mods for mobile detection

$10-30 USD

En cours
Publié il y a plus de 10 ans

$10-30 USD

Payé lors de la livraison
I have a standalone mobile site that I'm currently using htaccess to redirect mobile visitors to the mobile site [login to view URL] It works great, however all visitors are redirected to the homepage. I need additional rewrites rules added to the htaccess file to have the correct pages redirected. ie, [login to view URL] redirects to [login to view URL] There's only about 8 pages that need custom rewrite rules written. I tried to use this solution here: [login to view URL] but, I didn't have much luck with it as I'm not a regex expert, or programmer. Looking for an EXPERT with this type of experience. Should be a piece of cake! I will give you the URL's I need implemented. The main desktop site is in Joomla and the mobile site is wordpress. I didn't wanna mess around with plugins so I just added the htaccess rules and it worked perfect.. except Google webmaster guidelines strongly recommend the appropriate pages be redirected to their mobile counterparts, not just redirect to homepage. This is what I'm using now: RewriteCond %{HTTP:x-wap-profile} !^$ [OR] RewriteCond %{HTTP:Profile} !^$ [OR] RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "wapp|wapr|webc|winw|winw|xda|xda-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "[login to view URL]|[login to view URL]|windowssce|iemobile|mini|mmp" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "symbian|midp|wap|phone|pocket|mobile|pda|psp" [NC] RewriteCond %{HTTP_USER_AGENT} !macintosh [NC] # Check if we're not already on the mobile site RewriteCond %{HTTP_HOST} !^m\. # Can not read and write cookie in same request, must duplicate condition RewriteCond %{QUERY_STRING} !(^|&)m=0(&|$) # Check to make sure we haven't set the cookie before RewriteCond %{HTTP_COOKIE} !^.*mredir=0.*$ [NC] # Now redirect to the mobile site RewriteRule ^ [login to view URL] [R,L]
N° de projet : 5149169

Concernant le projet

7 propositions
Projet à distance
Actif à il y a 10 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
Décerné à :
Avatar de l'utilisateur
I was amazed to see the details of your requirement you posted. After having tried the solutions from stackoverflow, and reading guidelines from Google - that's what a person I would work for should be like. I can do those simple redirects for you; don't worry! If you worry about giving access to your site, I'll simply give you a new htaccess file that would do the trick! Awaiting your response and an opportunity to get you out of this issue. Best, Namaste O.
$15 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0
7 freelances proposent en moyenne $35 USD pour ce travail
Avatar de l'utilisateur
Dear Sir, i have a better way and script to redirect users to mobile site if they are using mobile to visit your site. And my solution is direct php on main site instead of using .htaccess. which might not work properly but my script will work.
$50 USD en 1 jour
4,9 (99 commentaires)
5,9
5,9
Avatar de l'utilisateur
I can easily make rewrite rules so it will generate on your respective 8 pages whatever link user hit it redirect it corresponding mobile page
$35 USD en 2 jours
5,0 (17 commentaires)
4,1
4,1
Avatar de l'utilisateur
Hi,Why use htaccess for this ? Why not java ? For time load ? Contact me on PM....Thank You...Tanas Alexandru Florin
$50 USD en 0 jour
5,0 (4 commentaires)
2,3
2,3
Avatar de l'utilisateur
Sir, I have read the project details clearly and am ready for it. I can assure you of perfection in my work and the work will be of high accuracy. Please provide more information about the project. Eagerly waiting for your reply. Thank you.
$35 USD en 1 jour
5,0 (4 commentaires)
2,5
2,5
Avatar de l'utilisateur
Hi there I can perform those operations to make the site redirect to those particular url's. Lets discuss in detail
$33 USD en 1 jour
4,6 (25 commentaires)
5,1
5,1
Avatar de l'utilisateur
Hello, We can start immediately and can deliver 100%
$24 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0

À propos du client

Drapeau de UNITED STATES
mt clemens, United States
5,0
11
Méthode de paiement vérifiée
Membre depuis oct. 15, 2012

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.