Sunday, 15 February 2015

.htaccess - htaccess mobile redirect works on one server, gives 500 error on another -



.htaccess - htaccess mobile redirect works on one server, gives 500 error on another -

i'm trying implement htaccess mobile browser detection script detectmobilebrowsers.com. format follows:

rewriteengine on rewritebase / rewritecond %{http_user_agent} (android|bb\d+|meego) .... [nc,or] rewritecond %{http_user_agent} ^(1207|6310|6590|3gso) .... [nc] rewriterule ^$ http://domain.com/mobile [r,l]

this script works on own website (hosted mediatemple) not parse on work site, hosted xo communiations, apparently strict htaccess rules , provides little support, detailed here example. server throw "500 internal server error."

beyond basics, i'm not familiar coding htaccess files, i'm hoping might have insight how 1 might implement type of redirect script in "strict" server environment. blogger in site reference above states "if [the htaccess file] isn’t coded , loaded unix file, there line break issues cause issues"-- i'm not sure if can provide direction here, assistance appreciated. time being, i'm using javascript-based redirect, vastly prefer htaccess-based approach if possible. figured i'd seek asking here before dealing xo's lackluster support...

.htaccess redirect mobile

No comments:

Post a Comment