Hello, I guess a better question is: What format does Apache return to the browser when a page is redirected? Is it HTML, WAP or something else? I did some more experimenting with another person's cell phone, and I found that their phone did NOT get the 404 message. Here are the WAP profiles of the phones: Not_working phone : http://communication-market.siemens.de/UAProf/SL56_10.xml Working phone : http://motorola.handango.com/phoneconfig/v300/profile/v300.rdf Not_working phone's supported versions: HTML = 4.0 XHTML = 1.0 WAP = 1.2 Working phone's supported versions: HTML = none XHTML = 1.1 WAP = 2.0 I looked at the accept headers from the phones, and most of the ones I expected to see where there for both phones. text/html application/xhtml+xml application.vnd.wap.wmlc application.vnd.wap.wmlscriptc application.vnd.wap.xhtml+xml The Not_working phone's accept also has */*. Does that effect what Apache will return on redirects? I'm not sure why that phone would send that in the accept header, since it obviously can't really support */* like a standard desktop browser. If I've posted in the wrong list, please let me know. Thank you for the help, -Nate > Hello, > > I'm having trouble rewriting URLs with my .htaccess file when I connect > using a WAP 1.1 phone. I've looked around and found a number of postings > about configuring Apache for access to index.wml, but I just want to have > a rewrite no matter what browser I connect with. Any ideas of how to get > this to work or suggestions on better approaches would be greatly > appreciated. > > Here's my current .htaccess: > > .htaccess > RewriteEngine on > > RewriteCond %{HTTP_HOST} ^www.urlAA.net$ [OR] > RewriteCond %{HTTP_HOST} ^urlAA.net$ [OR] > RewriteCond %{HTTP_HOST} ^mm.urlAA.net$ > RewriteRule ^(.*) http://www.urlBB:8080/myservlet/$1 [R,L] > > When I connect with IE or Firefox to www.urlAA.net/m/nate, I get directed > to www.urlBB:8080/myservlet/m/nate. This then lets me download my WML > data. When I attempt to do the same with my phone (WAP v1.1), I get a 404 > error. > > I was able to get my phone to connect by "hacking" my .htaccess file: > > .htaccess #2 > RewriteEngine on > > RewriteCond %{HTTP_HOST} ^www.urlAA.net$ [OR] > RewriteCond %{HTTP_HOST} ^urlAA.net$ [OR] > RewriteCond %{HTTP_HOST} ^mm.urlAA.net$ > RewriteRule ^(.*) http://www.urlBB:8080/myservlet/m/nate [R,L] > > Now my browsers and my phone can successfully access the data. However, > the "nate" part of the URL is a username field. This means I can't > hardcode it to nate in the .htaccess file because it will be different for > each user. > > Am I missing something simple here? > > Thank you for the help, > -Nate > > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx