pedrodz Posted August 17, 2007 Share Posted August 17, 2007 part 1: working ----------------- ErrorDocument 404 http://www.domain.com/error.htm RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.domain\.com?$ RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com$ RewriteRule ^$ /index.php?subdomain=%1 [L] http://www.domain.com -- no redirection http://us.domain.com rewrite to http://www.domain.com/index.php?subdomain=us http://es.domain.com rewrite to http://www.domain.com/index.php?subdomain=es ... and so on part 2: what I need ??? ----------------------- http://www.domain.com/(*.).htm rewrite to http://www.domain.com/index.php?action=$1 http://us.domain.com/(*.).htm rewrite to http://www.domain.com/index.php?subdomain=us&action=$1 http://es.domain.com/(*.).htm rewrite to http://www.domain.com/index.php?subdomain=es&action=$1 some sort of http://www.domain.com/register.htm rewrite to http://www.domain.com/index.php?action=register http://us.domain.com/register.htm rewrite to http://www.domain.com/index.php?subdomain=us&action=register Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.