Hello, I am not a programmer, but I was able to build a simple mobile site and get the detection to work.
However, after some thought I think I may have not done it the best way. If it is too complicated I will just hire a programmer...I have an index.php file that basically does the redirect as outlined above. I was unable to put in any meta description, title etc.... without getting any errors. Is there a better way to configure this? I just don\'t like that search engines see a redirect page as the opening page of my website that is void of any page content and how this will affect SEO.
any help/insight would be greatly appreciated.... thanks
September 15, 2009 13:01
support
Handset Detection
Hi Joeyk,
Great ! Glad you got it working.
I think the best option is to only redirect to the mobile site, and have your index.php as your main site page. You can do that with the hdapi.zip script. You would include \'devices.detect.php\' as the first line in your index.php
devices.detect.php can be setup to only redirect to a mobile site. If you put in the mobile site details and leave the normal site details blank then it will work like this.
Cheers
r
September 16, 2009 08:13
support
Handset Detection
Richard.... thanks so much! I will have a look... :)
September 16, 2009 08:20
support
Handset Detection
I had the same question as Joeyk. But I\'m hesitant to replace my current index.htm with index.php. Not only for bookmarked visits (which I can redirect), but also because I\'m not sure how different browsers will handle having two index files in my root. I\'d have to keep my current index for years until visitors change their bookmarks. I\'m worried about how search engines will treat this, too.
December 06, 2009 08:15
support
Handset Detection
Hi Jacquie,
I understand and your rationale makes complete sense.
The elegant and much easier solution is to be able to process php inside htm files, that way your files dont need the .php extension. This depends on how the web server is setup. So we can do a quick test to find out if we get the easy win.
1) Create a file called newfile.htm inside that file put this single line : (no spaces in front of the line).
2) Upload that file to your server and browse to /newfile.htm
3) If you see a long list of php information then you\'re in luck and you wont need to change any file names.
If not then we\'ll have to work out plan B (and i\'ll need your website URL).
The webserver as an order of precedence for choosing the index file. It\'ll probably first look for index.htm, then index.html, then index.php. It might look for other index files as well such as default.htm, default.html
Cheers
Richard
December 07, 2009 12:49
support
Handset Detection
Hi I am back, I am hoping that I can go with the the php inside html file option
I tried doing the \"newfile.htm\" test and no luck. However, I have a fairly good hosting plan so perhaps I made a mistake?
How would I go about going the html redirect option? If required I can pay to have the work done.
Thanks
January 19, 2010 04:31
support
Handset Detection
Hi Joeyk,
Welcome back.
Could you please check the file .htaccess which is normally existing on your web root? create it if not existing, then add a line \'AddType application/x-httpd-php .php3 .php4 .php .html .htm\' inside this file. Now browse \'newfile.htm\' again, tell me what you find please.
Cheers
Bill
Comments