Em Andamento

htaccess rewrite mods for mobile detection

I have a standalone mobile site that I'm currently using htaccess to redirect mobile visitors to the mobile site [url removed, login to view]

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, [url removed, login to view] redirects to [url removed, login to view]

There's only about 8 pages that need custom rewrite rules written.

I tried to use this solution here: [url removed, login to view]

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} "[url removed, login to view]|[url removed, login to view]|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 ^ [url removed, login to view] [R,L]

Habilidades: Linux, Mobile App Development, PHP

Ver mais: wordpress expert profile, using regex java, java regex rules, need wordpress webmaster, brew file, tim l, phil m, mobi file, google mobile site, mobi mobile net, tsm, sph, shar, sch, sage r, prox, php mobile, pant, nec, mot, java standalone, eric l, blac, aste, redirects joomla site

Acerca do Empregador:
( 11 comentários ) mt clemens, United States

ID do Projeto: #5149169

Premiar a:

njsubedi

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 t Mais

$15 USD em 1 dia
(0 Avaliações)
0.0

7 freelancers estão ofertando em média $35 para este trabalho

mhanif

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 properl Mais

$50 USD em 1 dia
(99 Comentários)
5.9
rjsultan

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 in 2 dias
(17 Comentários)
4.1
tanasalexandru

Hi,Why use htaccess for this ? Why not java ? For time load ? Contact me on PM....Thank You...Tanas Alexandru Florin

$50 USD in 0 dias
(4 Comentários)
2.3
honeypotant

Dear Sir. I've talented Web design/developer. My skills is HTML/HTML5, [url removed, login to view] with MsSQL, Programming with C,C#,C++, AJAX, JavaScript, CSS, Adobe Flash, PHP with MySQL, Joomla, Wordpress, Dreamweaver, shopping car Mais

$53 USD in 10 dias
(69 Comentários)
6.8
ashuagrawal

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 Mais

$35 USD em 1 dia
(4 Comentários)
2.5
harsh170890

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
(25 Comentários)
5.1
systemmohamed

Hello, We can start immediately and can deliver 100%

$24 USD em 1 dia
(0 Comentários)
0.0