I get a error result about subdomain.Please give me a correct way.

Topics: Developer Forum, Project Management Forum, User Forum
Jan 22, 2009 at 6:29 AM
Edited Feb 5, 2009 at 7:52 AM
I get a error result about subdomain.Please give me a correct way.

RewriteCond %{HTTP_HOST} ^(?!www)([^.]+)\.dinoch\.net
RewriteRule ^/list.aspx$ /member/list.aspx?username=%1 [I,L,U]
RewriteRule ^/post.aspx$ /member/post.aspx?username=%1 [I,L,U]
RewriteRule ^/(.*)$ /member/Default.aspx?username=%1 [I,L,U]

When I visit http://test.dinoch.net/list.aspx,Request.QueryString["username"] is test.
It is good.
When I visit http://test.dinoch.net/post.aspx,Request.QueryString["username"] is %1.
It is bad,I want get test
Feb 5, 2009 at 6:22 AM
Edited Feb 5, 2009 at 8:18 AM
RewriteCond %{HTTP_HOST} ^(?!www)([^.]+)\.dinoch\.net
RewriteRule ^/post.aspx$ /member/post.aspx?username=%1 [I,L,U]
RewriteRule ^/list.aspx$ /member/list.aspx?username=%1 [I,L,U]
RewriteRule ^/(.*)$ /member/Default.aspx?username=%1 [I,L,U]

When I visit http://test.dinoch.net/list.aspx,Request.QueryString["username"] is %1.
It is bad,I want get test
When I visit http://test.dinoch.net/post.aspx,Request.QueryString["username"] is test.
It is good.