Posted by socialexpert 2 years 12 weeks ago
Hello,
I work with a cms system and tried to send my mobile users to my mobile template.
i used htaccess to redirect mobile browsers to my mobile template.So for this cms the user normaly need to click on a button to set the template.So i made it easy, just by redirecting to a subdomain wich redirects to this settemplate.php.
Problem :
Quote:
The site you're visiting forwards the request so that it can never be finished.
i can´t set via htaccess.
Mega lol.. I´m confused and need help.
How can i fix this cookie prob ? Ô.ô
thx




Posted by ruadhan 2 years ago
Mobile Champion
Hi, what does your .htaccess look like? And how are you achieving the redirect to the subdomain which redirects to the other page?
Ruadhan O'DonoghuedotMobi
Posted by socialexpert 2 years ago
Hi pal,
my htaccess was on my first try :
RewriteEngine on RewriteCond %{HTTP_ACCEPT} “text/vnd.wap.wml|application/vnd.wap.xhtml+xml” [NC,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} “up.browser|up.link|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] #*SEE NOTE BELOW RewriteRule ^(.*)$ http://MOBI.domain.com/settemplate.php?template=mobile-template[L,R=302]Sub was redirected to http://Mobi.domain.com to keep mobile users on the sub.
Normaly the user could choose a template on my TLD.Now i want to redirect all mobile browsers directly to the mobiletemplate.
2nd try.
i thought i could work, if i run the 2 templates and split the userinterface by htaccess.
RewriteEngine on RewriteCond %{HTTP_ACCEPT} “text/vnd.wap.wml|application/vnd.wap.xhtml+xml” [NC,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} “up.browser|up.link|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] #*SEE NOTE BELOW RewriteRule ^(.*)$ http://www.domain.com/settemplate.php?template=mobile-template[L,R=302]Now its the same script, but my content should be displayed on the mobiletemplate.
and i tell you pal..same error :-(
If i click the "settemplate" it works fine, but not via htaccess bcause it loops.
And when i change my user agent to default and refresh my site i see my content on the mobiletemplate Ô.ô
i read now something about your wordpress pack..cool, but im running P l i g g .
Any idea ?