Find Jobs
Hire Freelancers

htaccess rewrite mods for mobile detection

$10-30 USD

Em Andamento
Publicado há mais de 10 anos

$10-30 USD

Pago na entrega
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]
ID do Projeto: 5149169

Sobre o projeto

7 propostas
Projeto remoto
Ativo há 11 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
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 em 1 dia
0,0 (0 avaliações)
0,0
0,0
7 freelancers estão ofertando em média $35 USD for esse trabalho
Avatar do Usuário
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 em 1 dia
4,9 (99 avaliações)
5,9
5,9
Avatar do Usuário
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 em 2 dias
5,0 (17 avaliações)
4,1
4,1
Avatar do Usuário
Hi,Why use htaccess for this ? Why not java ? For time load ? Contact me on PM....Thank You...Tanas Alexandru Florin
$50 USD em 0 dia
5,0 (4 avaliações)
2,3
2,3
Avatar do Usuário
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 em 1 dia
5,0 (4 avaliações)
2,5
2,5
Avatar do Usuário
Hi there I can perform those operations to make the site redirect to those particular url's. Lets discuss in detail
$33 USD em 1 dia
4,6 (25 avaliações)
5,1
5,1
Avatar do Usuário
Hello, We can start immediately and can deliver 100%
$24 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
mt clemens, United States
5,0
11
Método de pagamento verificado
Membro desde out. 15, 2012

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.