Help! in RewriteCond lost
Dear gentlemen,I still got mess as the simplest codes below even can not pass:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^a\.java\.net\.nl$ [NC]
RewriteRule ^$ /products/aindex.jsp [L]
RewriteCond %{HTTP_HOST} ^b\.java\.net\.nl$ [NC]
RewriteRule ^$ /products/bindex.jsp [L]
notes:
I want to build up several simplest secondary subdomain name for the current several web-module entry. Above, as I metioned hours before, I thought it means:
if(httphost=="a.java.net.nl") then url=/products/aindex.jsp
if(httphost=="b.java.net.nl") then url=/products/bindex.jsp
not any interpretations else,right?
but in runtime, the first one interpret ok, but the next one just disappear, it went to the firt Virutalhost set in the httpd.conf, and response another absolute wrong page for me, not a or b.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^b\.java\.net\.nl$ [NC]
RewriteRule ^$ /products/bindex.jsp [L]
RewriteCond %{HTTP_HOST} ^a\.java\.net\.nl$ [NC]
RewriteRule ^$ /products/aindex.jsp [L]
then the b.java.net.nl can reflect to bindex.jsp, but as above of a, once request on the behind a, it will reflect to another virutalhost,too.
where I unerstood wrong for the RewriteCond as well as RewriteRule?
frederick