Forum Moderators: phranque
//.....other rewrite rule [R=301,L]
RewriteCond %{HTTP_POST} ^www.example.com [NC]
RewriteRule (.*) http://sub.example.com/$1 [R=301,L]
It produces 404 error code. In browser address it showed http://sub.example.com/sub/
Can anyone help fix this problem? Thanks.
[edited by: jdMorgan at 2:57 pm (utc) on Oct. 16, 2005]
[edit reason] Example.com [/edit]
Jim
[edited by: jdMorgan at 2:56 pm (utc) on Oct. 16, 2005]
RewriteCond %{HTTP_POST} ^www\.sub\.example\.com [NC]
RewriteRule (.*) http://sub\.example\.com/$1 [R=301,L]
[edited by: jdMorgan at 2:57 pm (utc) on Oct. 16, 2005]
[edit reason] Example.com [/edit]
You were correct to point out that the literal periods in regex patterns should be escaped:
RewriteCond %{HTTP_POST} ^www\.sub\.example\.com [NC]
RewriteRule (.*) http://sub.example.com/$1 [R=301,L]
RewriteRule ^items/cigar_box_20.html /show_product.php?item=cigar_box&cost[b]=\$20[/b] [L]
Jim