I have a Drupal site which is quite big and practically unreadable on most mobile devices, by using this scipt, I have managed to get the site to redirect to a sub-domain for each mobile browser.
As the pages on the sub-domains are very minimal with little information, I also wanted to have the option to allow users to actually visit the main site if they wanted to. I've managed to accomplish this by adding a conditional to the code and creating a link on the sub-domains to send a request in URL (?redirect=none). The code in the conditional is this;
if ($_REQUEST['redirect'] == 'none')
I'm sure there's a better way of doing it (And I'm all ears) but that works fine and does stop the site from redirecting.
However when I click a link on the main site, it then redirects me back to the sub-domain again.
Anyone know how I can stop it from doing this?
Kind Regards
--Matt