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:
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/".
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.
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 |
- 1. WML (Wireless Markup Language) Introduction
- 2. WML Deck and Card
- 3. WML Document Structure
- 4. WML Generic Metadata: <meta>
- 5. Comments in WML
- 6. Line Breaking in WML
- 7. Font Size and Style in WML
- 8. WML Preformatted Text: <pre>
- 9. WML Images
- 10. WML Tables
- 11. WML Anchor Links
- 12. Programming Softkeys of Mobile Phones and the <do> Element
- 13. WML Template and Menu
- 14. WML Events and the <onevent> Tag
- 15. Timer and the ontimer Event
- 16. WML Event: onenterbackward
- 17. WML Event: onenterforward
- 18. WML Selection Lists and the onpick Event
- 19. WML Input Fields
- 20. WML Variables
- 21. Submitting Form Data to the Server in WML
- 22. Clearing a Saved Form in WML