Forum Moderators: phranque
[edited by: incrediBILL at 11:55 am (utc) on Jun 16, 2012]
[edit reason] fixed URLS, use Example.com [/edit]
What about this code does not work? Does it do something wrong, not do anything at all, or what?
How did you test? What were the expected results? What were the actual results? How did the actual results differ from the expected results? Any error messages in the browser? Any relevant entries in the server error log? Did you completely flush (delete) your browser cache before testing?
Did you configure your DNS to map these subdomains to your server? If not, you'll need to do that.
I need to have multiple subdomains redirect to specific product category URLs, without showing customer
<VirtualHost *:80>
DocumentRoot "C:\wamp\www\example"
ServerName local.example.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:\wamp\www\example\necklaces"
ServerName necklaces.example.com
</VirtualHost>
http://local.example.com
[local.example.com...]
[local.example.com...]
What I want is to have only .htaccess file in subdomain folder that allow rewrite (in my case C:\wamp\www\example\necklaces folder).
So if I write [necklaces.example.com...] in browser it should call page [local.example.com...] & browser URL should not be changed.
Hope it make sense. I am newbie for subdomain rewrites. Please help to me to get it work.
Thanks,
John