Forum Moderators: phranque
I want to make it possible for a user to access his or her page as if it were a sub domain of the site's domain
(example: [username.sitedomain.com...] )
for this i need to send all requests that have some subdomain in front to a php file that parses the given adress and redirects to the users my page.
I have tried writeing in .htaccess, something like this, but it doesn't work, pls help me:
RewriteCond %{HTTP_HOST} ^subdomaintest.sitedomain.com$
RewriteRule ^(.*)$ [sitedomain.com...] [R]
which for an url of type [subdomaintest.sitedomain.com...]
should redirect to handle.php in the site root
Welcome to WebmasterWorld!
> but it doesn't work
Please be more specific:
Note that you probably do not want to redirect here, you just want to internally rewrite the request to the script.
Jim