18.3. Using a Short URL for the WAP Home Page
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 WAP home page short. Ways to keep the URL short includes:
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 WAP 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 WAP site. If a HTTP request is sent from a mobile device, the WAP 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.xhtml". The pre-set default document is index.html / index.htm or default.html / default.htm for most web servers. One way is to change the default document to a file with the ".xhtml" extension such as index.xhtml and default.xhtml. Another way is to save your WAP home page as index.html, index.htm, default.html, or default.htm. (As mentioned earlier in this tutorial, an XHTML MP document can use the ".html" or ".htm" file extension.)
Previous Page | Page 25 of 36 | Next Page |
- 1. XHTML MP (XHTML Mobile Profile) Introduction
- 2. Development of Wireless Markup Languages
- 3. Advantages of XHTML MP
- 4. WML Features Lost in XHTML MP
- 5. Syntax Rules of XHTML MP
- 6. XHTML MP MIME Types and File Extension
- 7. XHTML MP Document Structure
- 8. XHTML MP Generic Metadata
- 9. Comments in XHTML MP
- 10. Line Breaking in XHTML MP
- 11. XHTML MP Horizontal Rules
- 12. XHTML MP Headings
- 13. Font Style in XHTML MP
- 14. XHTML MP Preformatted Text
- 15. XHTML MP Lists
- 16. XHTML MP Images
- 17. XHTML MP Tables
- 18. Anchor Links in XHTML MP
- 19. XHTML MP Selection Lists
- 20. XHTML MP Input Elements
- 21. Submitting Form Data to the Server in XHTML MP