11.5. Using a Short URL for the Home Page of a WML Site

As you all know, typing words using the number pad of a mobile phone is time-consuming. You should remember to keep the URL of your WML site's home page short. Ways to keep the URL short include:

  1. Making good use of a sub-domain. For example, use "http://wap.somedomain.com/" instead of "http://www.somedomain.com/wap/". To make the URL even shorter, you can use "http://somedomain.com/".

  2. Using the same URL as both the web site and WML site. For example, use "http://www.somedomain.com/" or "http://somedomain.com/" instead of "http://www.somedomain.com/wap/" as the home page of your WML site. If a HTTP request is sent from a mobile device, the WML version of your site will be forwarded to the client, otherwise the web version of your site will be forwarded.

  3. Setting the default document of your web server, so that the user can type "http://wap.somedomain.com/" instead of "http://wap.somedomain.com/index.wml". The pre-set default document is index.html / index.htm or default.html / default.htm for most web servers. You need to change it to a file with the ".wml" extension such as index.wml and default.wml.


Previous Page Page 21 of 50 Next Page


A button for going back to the top of this page