Hi, I would like to know if I can create a Subdomain without the use of cpanel. I am using my own webhost server without cpanel and registered my domain from namecheap.com From namecheap website, I have access to DNS and hostname settings. So what I tried was direct subdomain.domain.com to domain.com/subdomain. For Record Type, there are 3 I can use for this purpose, URL Redirect, URL Redirect(301) and URL Frame. URL Redirect just directs traffic to domain.com/subdomain. URL Frame masks/hides the targetted url. But that doesn't seem right as it only creates a frame above the actual url. The subdomain should be like food.about.com, where when I navigate, I can see food.about.com/spicy and not about.com/food/spicy. My purpose of creating a subdomain is to place different content on it and have search engines treat it as (almost) a separate site as my domain site. Any anyone tell me how I should create my subdomain correctly without the use of cpanel? Thanks in advance
None of those options are for a sub domain. Are you running your own name server & do you have shell access? If so you need to create a new entry in your /etc/named.conf file. All the instructions are in the file but also look at the man file for: named named.conf You will also need to need to read up on rndc and make sure that its running to secure your records. If name cheap is hosting your DNS you need to have an option for setting up a subdomain. ALternatively just create a new A record and give it the subdomain. Make sure your apache config is using named based virtual hosts and you'll be good to go. You should also setup a reverse DNS for this.
My tech colleague managed to setup somethings on apache and setup the subdomain. But now food.about.com/spicy and about.com/food/spicy are accessible and showing the same content. How do I make it such that only the subdomain - food.about.com/spicy is accessible so as to prevent content duplication penalty by google? My guess is through htaccess file? neither me or my colleague have much idea in this. Thanks
i think you pointed subdomain root folder to domain/subfolder right ? which is accessible to SE , users can u write the root folders (or document root ) for that domain and subdomain ?
yes,i think "How do I make it such that only the subdomain - food.about.com/spicy is accessible so as to prevent content duplication penalty by google? My guess is through htaccess file?" it is right .the htaccess file is the key also try on yahoo answers ,and on forums that are related to your problem
thanks chandan123 and downloadvyp for your inputs. chandan123, I'm not quite sure what you mean by "write the root folders (or document root ) for that domain and subdomain" Can you elaborate a bit? thanks. I have placed a 301 redirect on a htaccess file to redirect the subfolder url (about.com/food) to the subdomain url (food.about.com). But this only redirects the subfolder url (about.com/food) and not the folders in the subfolder like (about.com/food/spicy). Can any one let me know the htaccess codes to make this work? thanks
That is intesting find but that is what you need to allow your web hosting company do. Just do not waste your time for such kind things
What code do you currently have to redirect? It sounds like you may just be missing a "select all after" expression in your redirect line.
You need to make a new virtual host in your apache httpd.conf file <VirtualHost *:80> ServerName subdomain.domain.com:80 DocumentRoot "/home/domain.com/subdomain/" </VirtualHost> Then you would also need an "A" record, pointing to your server IP. subdomain.domain.com (your server IP) This can be done in your domain's DNS settings.