Advertisement:

Author Topic: how to create multi subdomains like this ?  (Read 8489 times)

jaspreet

  • Newbie
  • *
  • Posts: 30
how to create multi subdomains like this ?
« on: January 22, 2013, 01:32:43 pm »
;how to create multi subdomains use to cites and state like this

my domain show now this like this

www.mywebsite.com/city

but i want to my site show in sub domain like this

http://city.mywebsite.com

is it possivel ? please help me :(

jaspreet

  • Newbie
  • *
  • Posts: 30
Re: how to create multi subdomains like this ?
« Reply #1 on: January 22, 2013, 02:55:03 pm »
you can't get my point when someone click city or state  show to subdomain like this site check it

it's main domain
Quote
olx.in


and it's state  sub domain

Quote
http://punjab.olx.in/
 

« Last Edit: January 22, 2013, 03:09:10 pm by jaspreet »

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: how to create multi subdomains like this ?
« Reply #2 on: January 22, 2013, 06:25:33 pm »
you can create it need to install seprate osclass on subdomain

jaspreet

  • Newbie
  • *
  • Posts: 30
Re: how to create multi subdomains like this ?
« Reply #3 on: January 22, 2013, 06:50:24 pm »
ok and sub domains different database or same database to install  and how to city and state sub domains working equality ?

jaspreet

  • Newbie
  • *
  • Posts: 30
Re: how to create multi subdomains like this ?
« Reply #4 on: January 23, 2013, 12:29:56 pm »
please any one help me :(

jaspreet

  • Newbie
  • *
  • Posts: 30
Re: how to create multi subdomains like this ?
« Reply #5 on: January 24, 2013, 11:23:09 am »
please developer reply me i want to need your help please reply me :(

freenightguy

  • Newbie
  • *
  • Posts: 1
Re: how to create multi subdomains like this ?
« Reply #6 on: January 24, 2013, 03:21:34 pm »
if you are using your own web hosting, u can add sub domain as you want city.mywebsite.com on your hosting cpanel goto subdomain to create new subdomain

jaspreet

  • Newbie
  • *
  • Posts: 30
Re: how to create multi subdomains like this ?
« Reply #7 on: January 24, 2013, 04:05:55 pm »
sir i have own hosting and domain and i'm create subdomain  but i don't know how to connect state and city ?

marcelo63

  • Newbie
  • *
  • Posts: 47
Re: how to create multi subdomains like this ?
« Reply #8 on: January 24, 2013, 07:54:36 pm »
Can some explain me in plain English like I am 5 years old (i dropped a 0) why is good that each city has is own sub-domain. I have seen that in all top classified sites. But those work on geolocation either as an IP or html5 geolocation API. So what are the benefits and if someone if THOSE sites has a separate database or themes or whatosever meaning separate from city to city.

Now OSclass does not have it, but I know you can create it.
1) Creating subdomains on your hosting control panel
2) Installing on each subdomain osclass scritp
3) editing config file to point to main database
That is easy (well sorry for me) . But again I dont see the benefits honestly.
Regards
Marcelo from Miami

tomshaft

  • Guest
Re: how to create multi subdomains like this ?
« Reply #9 on: January 24, 2013, 08:03:33 pm »
Can some explain me in plain English like I am 5 years old (i dropped a 0) why is good that each city has is own sub-domain. I have seen that in all top classified sites. But those work on geolocation either as an IP or html5 geolocation API. So what are the benefits and if someone if THOSE sites has a separate database or themes or whatosever meaning separate from city to city.

Now OSclass does not have it, but I know you can create it.
1) Creating subdomains on your hosting control panel
2) Installing on each subdomain osclass scritp
3) editing config file to point to main database
That is easy (well sorry for me) . But again I dont see the benefits honestly.
Regards
Marcelo from Miami

Great question that I would like to see an answer to myself.

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
Re: how to create multi subdomains like this ?
« Reply #10 on: January 24, 2013, 09:00:35 pm »
Tom, maybe you can jump in here?

   I'm not sure what they are asking but here is my answer.

In the USA anyway people like things to be personal.
   So they like ads to be in their own hometown. (Even if there not ,they don't know that)
Get my point?

SGTScripts

  • Newbie
  • *
  • Posts: 15
Re: how to create multi subdomains like this ?
« Reply #11 on: January 24, 2013, 09:30:55 pm »
What about using:
Wildcard DNS
HTACCESS

Setting up the wildcard DNS you could type in something like:
lasvegas.myosclass.com
and with the htaccess file be redirected to something like
myosclass.com/search/city,lasvegas/

Its a start for now. The rest will more than likely need a change in the php code.

tomshaft

  • Guest
Re: how to create multi subdomains like this ?
« Reply #12 on: January 24, 2013, 10:05:49 pm »
Tom, maybe you can jump in here?

   I'm not sure what they are asking but here is my answer.

In the USA anyway people like things to be personal.
   So they like ads to be in their own hometown. (Even if there not ,they don't know that)
Get my point?
I see. You are very much correct. looking it from that point it makes since.
Tom

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
Re: how to create multi subdomains like this ?
« Reply #13 on: January 24, 2013, 10:30:33 pm »
I feel that I need to correct myself.

  I mean to say they don't know the website is not in there hometown, not the ads.

tomshaft

  • Guest
Re: how to create multi subdomains like this ?
« Reply #14 on: January 24, 2013, 10:44:40 pm »
I understood  :D