Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 3rd Oct 2011, 03:08 PM   #1
Write and Shine the Light
War Room Member
 
godinu's Avatar
 
Join Date: 2009
Posts: 367
Thanks: 69
Thanked 97 Times in 78 Posts
Default
php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

i'm using mobile templates based on php (will's), but purchased business cards ahead of time with a QR code on them linking to a future mobile site of my own with an index.html (rather than .php) page because i didn't know I would be using php even for the main mobile page. Do i need to do a redirect from the index.html page to display the .php index of the mobile site?


(in other words: mobile user scans my QR code to see what a mobile site is. It takes them to an index.html page which is supposed to be a mobile version of my site, but my mobile site is .php... redirect index.html to index.php? will it work properly on a phone?)
godinu is offline  
Unread 3rd Oct 2011, 05:16 PM   #2
HyperActive Warrior
War Room Member
 
Join Date: 2009
Location: Costa Rica
Posts: 164
Thanks: 63
Thanked 44 Times in 41 Posts
Default
Re: php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

hey there godinu

u have a few options:

1. create an index.html with a (meta refresh) to the index.php
2. copy index.php to index.html, and make sure your server parses php in .html files
3. create a symbolic link file (index.html) that points to index.php

the meta refresh option is the least painful

Patrick

I MARKET STUFF

imarketstuff is offline  
The Following User Says Thank You to imarketstuff For This Useful Post:
Unread 3rd Oct 2011, 07:40 PM   #3
Digital Marketer
War Room Member
 
WillR's Avatar
 
Join Date: 2010
Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
Default
Re: php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

Originally Posted by imarketstuff View Post

hey there godinu

u have a few options:

1. create an index.html with a (meta refresh) to the index.php
2. copy index.php to index.html, and make sure your server parses php in .html files
3. create a symbolic link file (index.html) that points to index.php

the meta refresh option is the least painful

Patrick
They are all good options above. My comments however would be:

1) Why did you include the index.html file in your QR code url? Why did you not just link to the root of your mobile site domain such as m.website.com instead of having it link to m.website.com/index.html?

2) If you are going to be having a QR code printed on to something which means you won't be able to change that QR code for sometime, you might want to consider linking the QR code to a url forwarding/redirect service. That way you can always change the destination url if you need to.

WillR is offline  
The Following User Says Thank You to WillR For This Useful Post:
Unread 3rd Oct 2011, 07:46 PM   #4
Write and Shine the Light
War Room Member
 
godinu's Avatar
 
Join Date: 2009
Posts: 367
Thanks: 69
Thanked 97 Times in 78 Posts
Default
Re: php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

I did it this way because I am just starting my business and haven't yet designed my website, but i had to get my QR-coded business cards made today so i could have them for a networking event. I had to take a stab at a URL I could live with, so I assumed it would be an index.html. This is just for a sample mobile site (my own) that will link from my business card QR code. I should've went through the mobile template first but just simply ran out of time.

Originally Posted by WillR View Post

They are all good options above. My comments however would be:

1) Why did you include the index.html file in your QR code url? Why did you not just link to the root of your mobile site domain such as m.website.com instead of having it link to m.website.com/index.html?

2) If you are going to be having a QR code printed on to something which means you won't be able to change that QR code for sometime, you might want to consider linking the QR code to a url forwarding/redirect service. That way you can always change the destination url if you need to.
godinu is offline  
Unread 3rd Oct 2011, 08:07 PM   #5
Digital Marketer
War Room Member
 
WillR's Avatar
 
Join Date: 2010
Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
Default
Re: php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

Originally Posted by godinu View Post

I did it this way because I am just starting my business and haven't yet designed my website, but i had to get my QR-coded business cards made today so i could have them for a networking event. I had to take a stab at a URL I could live with, so I assumed it would be an index.html. This is just for a sample mobile site (my own) that will link from my business card QR code. I should've went through the mobile template first but just simply ran out of time.
Yes, but do you understand what I mean?

The index file of a website, whether it is html or php, is the page that will always be served up when you type in that domain name. So let's say I typed in your mobile site http://m.website.com it is going to take me to the index file of that domain, whether it is index.html or index.php

You don't see people advertising their websites on television like this: http://www.website.com/index.html

You don't include the index.html or index.php in the domain url because there is no need to. Whether or not your mobile site has an index.html file or an index.php file as the main page, it will still be that page that shows up to anyone who types in the main domain such as http://www.website.com or http://m.website.com

WillR is offline  
Unread 3rd Oct 2011, 09:06 PM   #6
New Warrior Member
 
Join Date: 2007
Location: , , USA.
Posts: 24
Thanks: 29
Thanked 3 Times in 3 Posts
Default
Re: php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

One suggestion would be that you could do a 304 redirect in your hosting account, meaning that you can have your site redirect from the site.html to site.php. Hope that helps.

MUNK26 is offline  
The Following User Says Thank You to MUNK26 For This Useful Post:
Unread 4th Oct 2011, 01:17 PM   #7
Write and Shine the Light
War Room Member
 
godinu's Avatar
 
Join Date: 2009
Posts: 367
Thanks: 69
Thanked 97 Times in 78 Posts
Default
Re: php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

re: will's comment: yes i do understand completely what you mean and have not listed the URL anywhere; it's simply where the qr code leads. I am not sure why i made a goofy url the way i did -- sleep deprivation I suppose. I know better but now am trying to fix it.
godinu is offline  
Unread 4th Oct 2011, 07:54 PM   #8
Digital Marketer
War Room Member
 
WillR's Avatar
 
Join Date: 2010
Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
Default
Re: php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

Originally Posted by godinu View Post

re: will's comment: yes i do understand completely what you mean and have not listed the URL anywhere; it's simply where the qr code leads. I am not sure why i made a goofy url the way i did -- sleep deprivation I suppose. I know better but now am trying to fix it.
No problems - I just wanted to make sure you were aware of how to properly link to urls. We all make mistakes, just a shame it was on a printed material!
WillR is offline  
Unread 4th Oct 2011, 09:08 PM   #9
Web Marketing For Profit
War Room Member
 
Quentin's Avatar
 
Join Date: 2002
Location: Brisbane
Posts: 2,895
Thanks: 8
Thanked 1,162 Times in 528 Posts
Blog Entries: 10
Default
Re: php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

Another way to overcome this would be to add a great offer to your index html page and then have a link to the php site.



Q

Quentin is offline  
Unread 4th Oct 2011, 10:19 PM   #10
Write and Shine the Light
War Room Member
 
godinu's Avatar
 
Join Date: 2009
Posts: 367
Thanks: 69
Thanked 97 Times in 78 Posts
Default
Re: php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

true... i was going to use that particular qr code-linked page to show potential clients how a mobile site works from my phone though. that page i'm talking about is meant just for mobile viewing.

Originally Posted by Quentin View Post

Another way to overcome this would be to add a great offer to your index html page and then have a link to the php site.



Q
godinu is offline  
Unread 4th Oct 2011, 10:20 PM   #11
Write and Shine the Light
War Room Member
 
godinu's Avatar
 
Join Date: 2009
Posts: 367
Thanks: 69
Thanked 97 Times in 78 Posts
Default
Re: php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

btw quentin, i love those offer mockups! are u offering such templates in another thread? I've read a lot of your posts and learned a lot. hadn't noticed those though!
godinu is offline  
Unread 4th Oct 2011, 11:45 PM   #12
Digital Marketer
War Room Member
 
WillR's Avatar
 
Join Date: 2010
Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
Default
Re: php mobile page linking to html index
Share on: 
fb share twitter share gplus share more share

Originally Posted by godinu View Post

btw quentin, i love those offer mockups! are u offering such templates in another thread? I've read a lot of your posts and learned a lot. hadn't noticed those though!
You would need to be very careful about using one of those landing type pages as the first page a mobile user goes to. I have seen a few of those pages and the images on most are well over 100kb. This means on the average mobile connection it will take some time for the images to load. The first page you serve up to a mobile user should be streamlined so it shows up as quickly as possible so as to not put them off. The first page is the most important part of your mobile experience. If it takes forever to load people will hit that back button and go elsewhere.

These types of pages are best used in situations where a customer is sitting in your restaurant or business that has free wifi and you have a coupon offer on the table that takes them to a landing page like this.

WillR is offline  
Closed Thread


Bookmarks

Tags
html, index, linking, mobile, page, php


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:06 AM.