3rd Oct 2011, 03:08 PM | #1 |
Write and Shine the Light War Room Member Join Date: 2009
Posts: 367
Thanks: 69
Thanked 97 Times in 78 Posts
|
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?) |
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
|
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 | |
The Following User Says Thank You to imarketstuff For This Useful Post: |
3rd Oct 2011, 07:40 PM | #3 | |
Digital Marketer War Room Member Join Date: 2010 Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
|
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. | |
| ||
The Following User Says Thank You to WillR For This Useful Post: |
3rd Oct 2011, 07:46 PM | #4 | |
Write and Shine the Light War Room Member Join Date: 2009
Posts: 367
Thanks: 69
Thanked 97 Times in 78 Posts
|
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.
| |
3rd Oct 2011, 08:07 PM | #5 | |
Digital Marketer War Room Member Join Date: 2010 Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
|
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 | |
| ||
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
|
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.
|
| |
The Following User Says Thank You to MUNK26 For This Useful Post: |
4th Oct 2011, 01:17 PM | #7 |
Write and Shine the Light War Room Member Join Date: 2009
Posts: 367
Thanks: 69
Thanked 97 Times in 78 Posts
|
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.
|
4th Oct 2011, 07:54 PM | #8 |
Digital Marketer War Room Member Join Date: 2010 Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
|
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!
|
4th Oct 2011, 09:08 PM | #9 |
Web Marketing For Profit War Room Member Join Date: 2002 Location: Brisbane
Posts: 2,895
Thanks: 8
Thanked 1,162 Times in 528 Posts
Blog Entries: 10 |
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 |
DIY Product Creation Online Business Training on How To Create Products to sell online Plus Lots More. | |
4th Oct 2011, 10:19 PM | #10 |
Write and Shine the Light War Room Member Join Date: 2009
Posts: 367
Thanks: 69
Thanked 97 Times in 78 Posts
|
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. |
4th Oct 2011, 10:20 PM | #11 |
Write and Shine the Light War Room Member Join Date: 2009
Posts: 367
Thanks: 69
Thanked 97 Times in 78 Posts
|
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!
|
4th Oct 2011, 11:45 PM | #12 | |
Digital Marketer War Room Member Join Date: 2010 Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
|
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. | |
| ||
Bookmarks |
Tags |
html, index, linking, mobile, page, php |
| |