php mobile page linking to html index

by godinu
11 replies
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?)
#html #index #linking #mobile #page #php
  • Profile picture of the author imarketstuff
    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
    Signature
    I MARKET STUFF

    {{ DiscussionBoard.errors[4803414].message }}
    • Profile picture of the author WillR
      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.
      {{ DiscussionBoard.errors[4803997].message }}
      • Profile picture of the author godinu
        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.
        {{ DiscussionBoard.errors[4804015].message }}
  • Profile picture of the author Quentin
    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
    {{ DiscussionBoard.errors[4811016].message }}
  • Profile picture of the author godinu
    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!
    {{ DiscussionBoard.errors[4811292].message }}
    • Profile picture of the author WillR
      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.
      {{ DiscussionBoard.errors[4811638].message }}

Trending Topics