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]
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
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.
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.