Miguel Guerreiro - 2011-01-18 17:04:44
I want to do the following:
If I go to subdomain.site.com, it is now going to page.php?str=subdomain.
What I need to do is, if I go to subdomain.site.com/thisfile, I need to go to page.php?str=subdomain&u=thisfile.
Here is what I have so far.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ([^\.]+)\.site\.com [NC]
RewriteCond %1 !^(www|ftp|mail|test|dev) [NC]
RewriteRule ^(.*)$ page.php?str=%1 [L]
Any help would be greatly appreciated.