just to clarify how this works, the registrar is about domain ownership/contact information and refers to the domain name servers.
the dns points hostnames to server IP addresses.
the dns can be configured so example.com goes to one one IP and www.example.com goes to a different IP and blog.example.com goes to another, etc.
it is also possible to allow a wildcard subdomain specification for an address record.
where requests for example.com vs www.example.com are served depends on how the dns is configured.
if the dns is configured so any or all hostnames (subdomains) of example.com point to the same web server, the web server can be configured so each hostname has its own virtual host configuration or a virtual host configuration can also specify a wildcard subdomain.
other than the conventional usage of www.example.com as the default or preferred hostname for serving web content, its behavior is exactly as any other arbitrary subdomain similarly configured.
Hi so I wanted to know that my redirect for all "example.com" requests to goto "www.example.com" should be in my apache server account's .htaccess file or in my domain registrar?
the directives for redirecting example.com requests to www.example.com should reside on the server (more specifically the example.com virtual host) in either the document root directory's .htaccess file or in the server config file within the appropriate VirtualHost or Directory context.