Apache Server Redirection for WAP
 
Include this text in /etc/httpd/conf/httpd.conf - Apache Config File
 
You will need to change the path /var/www/craic_external/... to suit your site
<Directory "/var/www/craic_external/html/mobile/ora">

  RewriteEngine On

  # Catch XHTML MP browsers first and get them the 'best' content
  # There is an implicit AND of these two conditions

  RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml 
  RewriteCond %{HTTP_ACCEPT} text/vnd\.wap\.wml

  RewriteRule index.html$ index.xhtml [L]

  # If the browser can not handle xhtml but *can* handle wml do this

  RewriteCond %{HTTP_ACCEPT} text/vnd\.wap\.wml

  RewriteRule index.html$ index.wml [L]

  # Otherwise regular (and other browsers) go here
  # No need for an explicit rewrite rule
  # RewriteRule index.html$ index.html [L]

</Directory>