View previous topic :: View next topic |
Author |
Message |
Deirdre Czarina Emeritus

Joined: 10 Nov 2004 Posts: 13023 Location: Camp Cooper
|
Posted: Mon Apr 05, 2010 10:06 pm Post subject: At the end of my art |
|
|
Does anyone know how to configure a website to detect and redirect mobile devices?
I have spent several hours on failed attempts tonight.
I know about http://detectmobilebrowsers.mobi/
Unless I've gone completely blind, it's no help with where to put the scripts you create. _________________ DBCooperVO.com
IMDB |
|
Back to top |
|
 |
asnively Triple G

Joined: 17 Jun 2006 Posts: 3204 Location: Los Angeles
|
Posted: Mon Apr 05, 2010 10:28 pm Post subject: |
|
|
I think you put the script in your HEAD tag and bracket it with <script></script> _________________ the Amy Snively family of brands for all your branded thing needs.
Amy Snively
Faff Camp
FaffCon
TalkerTees |
|
Back to top |
|
 |
Deirdre Czarina Emeritus

Joined: 10 Nov 2004 Posts: 13023 Location: Camp Cooper
|
Posted: Mon Apr 05, 2010 10:43 pm Post subject: |
|
|
PHP is different, and stands along or goes before the HTML open tag if the server will accept it there.
Those <script> tags are for javascript and stuff. _________________ DBCooperVO.com
IMDB |
|
Back to top |
|
 |
asnively Triple G

Joined: 17 Jun 2006 Posts: 3204 Location: Los Angeles
|
|
Back to top |
|
 |
Deirdre Czarina Emeritus

Joined: 10 Nov 2004 Posts: 13023 Location: Camp Cooper
|
Posted: Tue Apr 06, 2010 8:25 am Post subject: |
|
|
"Making a tree"! You're over my head.
I am going to try some .htaccess stuff. _________________ DBCooperVO.com
IMDB |
|
Back to top |
|
 |
kgenus Seriously Devoted

Joined: 01 Dec 2004 Posts: 889 Location: Greater NYC Area
|
Posted: Tue Apr 06, 2010 2:59 pm Post subject: |
|
|
It has to be some server side scripted language, I used PHP.
1. Grab the file I put here and copy its contents to the clipboard.
2. Open your index.html file, SAVE AS index.php.
3. Paste the clipboard contents.
4. Locate the line near the end that contains [YOUR REDIRECTED SITE] and change it to your mobile site.
5. Save file, upload and test with mobile device.
That's the quickest way to do it. I'll leave that link up for 30 days, the file needs to be updated because it's old, but that's the info you're after.
***********************
I just saw the other link, you could do the same with that, it's not as efficient....
*********************** _________________ Genus |
|
Back to top |
|
 |
Deirdre Czarina Emeritus

Joined: 10 Nov 2004 Posts: 13023 Location: Camp Cooper
|
Posted: Tue Apr 06, 2010 3:36 pm Post subject: |
|
|
kgenus wrote: |
3. Paste the clipboard contents.
|
Kevin says to paste the code at the top, above the HTML document declaration. _________________ DBCooperVO.com
IMDB |
|
Back to top |
|
 |
Mandy Nelson MMD

Joined: 07 Aug 2008 Posts: 2914 Location: Wicked Mainah
|
Posted: Tue Apr 06, 2010 5:52 pm Post subject: |
|
|
Now that's some sweet help! _________________ 006 member of the Sisterhood of the Traveling Mic. Bonded by sound.
Manfillappsoc: The Mandy and Philip mutual appreciation Society. Who's in your network?
Have you seen my mic closet? ~ me to my future husband |
|
Back to top |
|
 |
Deirdre Czarina Emeritus

Joined: 10 Nov 2004 Posts: 13023 Location: Camp Cooper
|
Posted: Tue Apr 06, 2010 7:33 pm Post subject: |
|
|
Yes, this is totally FOR THE WIN.
The code just needs the closing ?>
I renamed my index.html page to index.php.
I put my mobile website this bit of code
Code: | Location: http://[YOUR REDIRECTED SITE]
|
and added the ?> at the very end of it all and pasted the whole shebang in above the html doc declaration. _________________ DBCooperVO.com
IMDB |
|
Back to top |
|
 |
Mandy Nelson MMD

Joined: 07 Aug 2008 Posts: 2914 Location: Wicked Mainah
|
Posted: Tue Apr 06, 2010 7:50 pm Post subject: |
|
|
OHHH, gonna try gonna try gonna try!! Thanks for the share. _________________ 006 member of the Sisterhood of the Traveling Mic. Bonded by sound.
Manfillappsoc: The Mandy and Philip mutual appreciation Society. Who's in your network?
Have you seen my mic closet? ~ me to my future husband |
|
Back to top |
|
 |
Deirdre Czarina Emeritus

Joined: 10 Nov 2004 Posts: 13023 Location: Camp Cooper
|
Posted: Tue Apr 06, 2010 8:00 pm Post subject: |
|
|
As soon as I'm sure about the way the mobile site works, I'll post a link to the website I was using to test this.
WOO. _________________ DBCooperVO.com
IMDB |
|
Back to top |
|
 |
asnively Triple G

Joined: 17 Jun 2006 Posts: 3204 Location: Los Angeles
|
|
Back to top |
|
 |
bobsouer Frequent Flyer

Joined: 15 Jul 2006 Posts: 9883 Location: Pittsburgh, PA
|
Posted: Tue Apr 06, 2010 10:20 pm Post subject: |
|
|
Really awesome! _________________ Be well,
Bob Souer (just think of lemons)
The second nicest guy in voiceover.
+1-724-613-2749
Source Connect, phone patch, pony express |
|
Back to top |
|
 |
JBarrett M&M

Joined: 19 Feb 2007 Posts: 2043 Location: Las Vegas, NV
|
|
Back to top |
|
 |
|