![]() |
anyone know a simple html rediection for when using browsers?
As per title really, I have my portfolio website written in Flash that I'm very happy with. Problem is, I'd like people to access it using Iphones and ipads, etc. (stupid apple with no flash support).
I'm thinking I could write a simple html only version of the site that when a mobile os is detected just redirects it to the html version. Unfortunately I don't know Apache so php is difficult and a quick trawl of the interent comes up with all sorts of non-html solutions to the problem! Am I going to have to look at Apache or jsQuerys and the like? Cheers, Dave |
Re: anyone know a simple html rediection for when using browsers?
Sorry - just re-read that title! Awful grammar...
|
Re: anyone know a simple html rediection for when using browsers?
http://detectmobilebrowsers.mobi/ free for non profit websites apparently.
|
Re: anyone know a simple html rediection for when using browsers?
Yeah, had a look at that one - it's the Apache one... I'm looking into how hard it is to implement now but would prefer a straight forward html check one...
Basically just an if statement if (mobile browser detected) redirect to http://... |
Re: anyone know a simple html rediection for when using browsers?
can't help with the browser/os detect script but a simple html redirect would be something like this:
<META HTTP-EQUIV="refresh" CONTENT="0;url=http://www.google.co.uk"> I *think* that should work but it's years since I started learning this sort of stuff (I was still in school!)... the 0; right before the URL is the number of seconds you want the browser to wait before redirecting so with this code in most cases, people wouldn't even see the blank page - it would redirect instantly (wasn't always the case on 56.6!).. Hope this helps in some way edit: thinking it would be a javascript you'd need? One of them fancy .if fucntions like if.MacOSX url="meh.com" or if.android url="getYourselfan-iPhoneSunshine.com" but it's not something i'd know how to put together from scratch? |
Re: anyone know a simple html rediection for when using browsers?
I'm just looking over the jsQuery stuff now... I'm sure it's possible but the problem is going to be with newer versions of OS or browsers that aren't supported by the java script. It has to know exactly what your using or it wont redirect you...
|
Re: anyone know a simple html rediection for when using browsers?
Without trying to sound like a smart-ar5e, would you not be better off having a website built in something that Google etc can read properly? i.e. not Flash?
|
Re: anyone know a simple html rediection for when using browsers?
Quote:
|
Re: anyone know a simple html rediection for when using browsers?
Don't do the check in JavaScript. Too many reasons to list that you most likely won't understand but here's two for starters, firstly a lot of mobile devices won't have JavaScript enabled, and secondly you'll be serving a fully loaded site to the mobile user and then redirecting them to the optimised trimmed down version.
So you're forcing them to download a lot of data for no real reason, expensive on a lot of mobile devices (don't just think about people who have contracts with included data bundles). By doing it at server level (how depends on your setup; Apache, IIS, etc) you avoid this and serve the low bandwidth version immediately. What's your portfolio for? How does having it in Flash benefit it? Can HTML/CSS/JS not achieve what you want? And what percentage of traffic (check server logs) is coming from mobile devices? It's not just Apple's devices which don't support Flash, older versions of Android and those with unsupported processors (< ARMv7) won't have decent, if any, support either. Same goes for a lot of Symbian devices. |
All times are GMT. The time now is 08:31 AM. |
Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.