here i am again 🙁
got big problem hiks … need HELP !!!
i have URL like
http://www.foo.com/user/index.php?uid=me&page=about
and i want to change into like this
i already success to make virtual subdomain + wildcard + using this htaccess
RewriteBase /
RewriteCond %{HTTP_HOST} !www.foo.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).foo.com [NC]
RewriteRule (.*) user/index.php?uid=%2 [L]
but i do not know how to make &page=about appears on request
UPDATE
No body Answer this question 🙁
update, now i already have a solution, “with my try and error” 😛
“but” the htacces looks weird.
now, any one can fix this? or maybe what should i do … this htaccess was RUN corecty
RewriteCond %{HTTP_HOST} !www.foo.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).foo.com [NC]
RewriteRule (.*)^/?([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ user/index.php?uid=%2&page=$2&subrequest=$3 [L]
RewriteCond %{HTTP_HOST} !www.foo.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).foo.com [NC]
RewriteRule (.*)^/?([a-zA-Z0-9]+)$ user/index.php?uid=%2&page=$2 [L]
RewriteCond %{HTTP_HOST} !www.foo.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).foo.com [NC]
RewriteRule (.*) user/index.php?uid=%2 [L]
I really need your help masters 🙁
regard.
Stecy >:(
See it this helps:
I’ll be happy to explain what the above rules do if necessary.