|
||||||||
|
|||||||
| Register | FAQ | Calendar | Radio and TV | NP Shop | Search | Today's Posts | Mark Forums Read |
| Adult Webmasters Main Forum Friendly adult web master chat, help and information |
![]() |
![]() |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
im not here for the points it just looks like i am
Join Date: Mar 2008
Posts: 11
Points: 55
|
A question about subdomains ...
Guys I have one big problem creating independent subdomains ,
lets say my domain is , SQdomain.com , I want to have a secondary domain as separate site like Site1.SQdomain.com . I logged in to my cpanel and under the Domains section , I clicked the subdomain Icon and created that subdomain (site1.SQdomain.com) , later I've found out that this subdomain added as a subdirectory folder within my web site so the subdomain site can be accessed in both ways : Site1.SQdomain.com and SQdomain.com/Site1/ I've checked other sites which are usin subdomains , and non of them were like that ( it's only accessable through the exact subdomain address , not by usnig slashes ) What should I do to have a real subdomain that can act as a seprate site ? BTW I have a reseller hosting account . Thanks |
|
|
|
|
|
#4 (permalink) |
|
Nothing special to say here
Join Date: Dec 2007
Posts: 305
Points: 1,600
|
I think this largely depends on the control panel you use. On one of my hosts they used DirectAdmin, and it behaves in exactly this way. While it's not my favorite approach, it's passable for me, and I think there is a way to use rewrite in .htaccess to always bounce people from the subdir URL to the subdomain URL.
On another host that uses H-Sphere the subdomain is treated like a separate domain, in both the file system and in the URL. Everything is on the one same shared IP. |
|
|
|
|
|
#6 (permalink) |
|
She cries MORE MORE MORE!
|
Try adding the sub domain as a new domain rather than a sub domain.
__________________
I work smarter not harder with the following awesome tools! Gallery Submitter | Blogs Organizer | Gallery Scraper | Site Organizer | Links Organizer |
|
|
|
|
|
#7 (permalink) |
|
■ Finest Spam Moderator ■
|
In my CP at CW, when i make subdomain named subdomain1 for example, i can access that subdomain like http://www.site-i-used-when-i-open-a...om/subdomain1/ [master domain] and subdomain1.domain-i-want.com
__________________
|
|
|
|
|
|
#9 (permalink) | |||
|
im not here for the points it just looks like i am
Join Date: Mar 2008
Posts: 11
Points: 55
|
Quote:
Quote:
Quote:
What am i speaking is only possible on dedicated,VPs and reseller hosting , dont know why , but I think that's something about DNS configuration (??) |
|||
|
|
|
|
|
#10 (permalink) | |
|
Nothing special to say here
Join Date: Dec 2007
Posts: 305
Points: 1,600
|
Quote:
If your hosts allows, they may be able to manually set you up outside the panel the way you want, but most control panels have a habit of undoing the changes the next time your account is updated (daily, whatever). So apart from using a different host that has a different panel, about the only other things is to disable the panel completely and do everything (DNS) manually. |
|
|
|
|
|
|
#11 (permalink) |
|
I'm the Sexy one!
Join Date: Aug 2007
Location: Linköping
Posts: 282
Points: 4,630
|
hmm lets throw in some input.
a REAL subdomain you set in your DNS. (most hosts take care of the dns for you and or you ask them todo it or they have a admin panel where you can do it) yoursite.com and E-Commerce Hosting (most of time point to the same site) but www. is just a subdomain ;-) setup in your dns. In your apache configuration file .. you set domain.com and domain.com - Get online with a domain name and web hosting to point to the right folder. setting up a new sub domain .. you would set in your DNS site1.domain.com and pointing to teh same IP as the rest (unless you want/have differnt ip's) Then in your apache configuration file .. you point to a differnt folder. You can also fake this .. by setting in your dns *.domain.com and every sub domain would just link to the same site... then with php you could fish out the subdomain and show something differnt based on the subdomain. @panels ... I never use them, I don't know much about linux .. but I guess have been computer savy enough to learn the things I need to know to get my servers the way I want it and not being limited to panels .. that do everything I don't want .. hehe EDIT: Don't bother the links .. crappy title addon! ;-) |
|
|
|
|
|
#12 (permalink) |
|
im not here for the points it just looks like i am
Join Date: Mar 2008
Posts: 11
Points: 55
|
thanks for the inputs gents ,
by manipulating the records that are held in DNS servers , sure is possible to define a new sub domain (e.g $ORIGIN subdomain.domain.com. www IN A xxx.xxx.xxx.xxx) , but am not sure if it is a good choice going deep into creating such records . I tried and added my subdomains directly from WHM (while creating a new account) without further configuration and it seems working well . This time the only possible way to access each subdomain is only by typing its address , e.g Site1.Sqdomain.com works but SQdomain.com/Site1 doesnt exist ! But still am not sure if it is the way i have to create my subdomains , considering the trick above , you think that if SEs remove one of the subdomains from the index will the rest work fine or its like the past situation (Where both Site1.SQdomain.com and SQdomain.com/Site1 refer to the same place i.e subdirectory) ? |
|
|
|
|
|
#13 (permalink) |
|
I'm the Sexy one!
Join Date: Aug 2007
Location: Linköping
Posts: 282
Points: 4,630
|
Since you're using an admin panel on your server it would be best to go with that and let it create the stuff for you. (if you manually go change things there is a big chance as soon your admin panel notices it .. it will change it back to what it thinks it should be).
As far with DNS records .. when you register a domain by a registar you going to set name servers given by your host. (well most of the time). examaple. Nameserver1.yourhost.com Nameserver2.yourhost.com in the end that results when I type in your domain in my browser I get redirected to your host name servers and they send me to your server (IP) so if you create a sub domain it would be best to have it in your DNS even if it points to the same IP (maybe in a far far future, your subdomain would get so much traffic you want to run from a differnt server then your main site .. in that case you only have to change the ip in your dns records and you're done.) Lots of people have static . domain . com ... to host their images / videos from that often points to a diffent cheaper server with just lots of bandwidth. (thats just set in the DNS to point to what-ever server they use for that) |
|
|
|
|
|
#14 (permalink) | |
|
Nothing special to say here
Join Date: Dec 2007
Posts: 305
Points: 1,600
|
Quote:
Unless you have links to the subdirectory, SEs should never crawl that and so the "duplicate" will remain undiscoverable. But as I mentioned before, it should be possible to use a little mod rewrite to direct any subdir traffic (should it ever exist) into the subdomain. I'm not a mod rewrite expert, but I'm sure there are examples of this around. IF an SE ever did find the subdir, you'd use permanent redirects to inform it that the content in the subdir has been permanently moved to your subdomain. Any good SE will not treat this as duplicate content. |
|
|
|
|
|
|
#15 (permalink) | |
|
im not here for the points it just looks like i am
Join Date: Mar 2008
Posts: 11
Points: 55
|
Quote:
Thanks , that's what i wanted to know . Seems there's no duplicate content now , each subdomain has a separate hosting account . Previously I was using only a hosting account with several subcategories and each subdomain pointed to one of those subcategories , that way you reached for example an IMG by both typing the subdomain itself or themaindomain.com/subdomain . thanks. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
![]() |
![]() |