Advertisement:

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

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: how to create multi subdomains like this ?
« Reply #15 on: January 25, 2013, 12:23:18 am »
osclass does not support i tried it by installing 1 site and then pointing all subdomains to main domain done through config.php


But i think wildcard and htacess can do rest work.

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: how to create multi subdomains like this ?
« Reply #16 on: January 25, 2013, 12:27:55 am »
@Marcelo and mmcsus subdomain is good for earning you can put adsence on all subdomain.

tomshaft

  • Guest
Re: how to create multi subdomains like this ?
« Reply #17 on: January 25, 2013, 01:33:58 am »
marcelo63,
Here is one reason I use mutiple installations on different domains and sub-domains.
They are real estate sites for each agent/agency. Each are personalized sites but all share a common database. In this way, All listings are on all sites but it "looks" like the listing is only on the one site the viewer is visiting.
 
Here is a link where I discuss mutiple sites if anyone is interested.
http://forums.osclass.org/general-help/multiple-osclass-installs/?PHPSESSID=805ef10f912d5ffbdc3ba26c3ca4c848

 
Tom
« Last Edit: January 25, 2013, 05:29:09 pm by tomshaft »

chintor

  • Jr. Member
  • **
  • Posts: 95
Re: how to create multi subdomains like this ?
« Reply #18 on: January 30, 2013, 04:14:54 pm »
Yep, u have to create seperate subdomains for each city or region and use the same database name and database password for all subdomains when installing osclass or by editing config.php


Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: how to create multi subdomains like this ?
« Reply #19 on: January 30, 2013, 11:10:21 pm »
Yep, u have to create seperate subdomains for each city or region and use the same database name and database password for all subdomains when installing osclass or by editing config.php

Did u try?

tomshaft

  • Guest
Re: how to create multi subdomains like this ?
« Reply #20 on: January 30, 2013, 11:50:29 pm »
"Point a sub-domain" to a city. Example:www.sub-domain.com/city
Using your MAIN website. Navigate to the city page you want the sub-domain to  point too. Copy or write down the enter link shown in the browser address bar.

Log into your website HOST provider control panel. Navigate to the area  showing your domains and sub-domains. In the domain area find the setting for  re-direct. Open the sub-domain you want to re-direct and paste in the link from the browser address  bar into the re-direct bar. Click save. Now when that sub-domain is accessed it  leads direct to the city link.

Here is a working example of a link you would copy from the web browser  address bar:
http://www.kathyfarnsworth.com/index.php?page=search&sRegion=Michigan The  name of the sub-domain does not matter. Just so long as it is pointed  (re-directed) to the page you want linked. The example above is to the state of Michigan  search page but it can be to ANY page including a city.
Without actualy logging in and seeing your host provider control panel, I am  unable to tell you exactly where the domain and sub-domain settings are..
You do not change the DNS.

Understand this:
MS hosting - The sub-domain must be entered like this = www.subdomain.com/city
Linux Hosting - The sub-domain can be entered like this = www.city.subdomain.com

Tom
« Last Edit: January 30, 2013, 11:53:08 pm by tomshaft »

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: how to create multi subdomains like this ?
« Reply #21 on: January 31, 2013, 02:25:02 pm »
hi, Tom i am on a shared hosting will it work?

tomshaft

  • Guest
Re: how to create multi subdomains like this ?
« Reply #22 on: January 31, 2013, 02:39:58 pm »
Sure. Shared is not a problem for this. Only thing I perfer is to be linux hotying and not MS hosying. MS hosting is limiting to what can be done and personaly I feel contributes to issues and errors.
 
I am working on a new gateway page showing multiple dropdown menus. this does give give sub-sub-sub categories but does allow for a menu with links to city search result page.
 
Tom

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: how to create multi subdomains like this ?
« Reply #23 on: January 31, 2013, 03:25:45 pm »
As you said in MS hosting i will have to visit my sub like www.sub.com/mycity is this right?

tomshaft

  • Guest
Re: how to create multi subdomains like this ?
« Reply #24 on: January 31, 2013, 04:37:41 pm »
Yes. that is correct if MS hosting.
Tom

jaspreet

  • Newbie
  • *
  • Posts: 30
Re: how to create multi subdomains like this ?
« Reply #25 on: January 31, 2013, 04:45:17 pm »
i have Linux Hosting but trying not working

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: how to create multi subdomains like this ?
« Reply #26 on: January 31, 2013, 05:12:33 pm »
hi,Tom

Did not work other city ads showing too at instead of showing bangalore ads
« Last Edit: October 08, 2015, 07:41:29 pm by Legion »

tomshaft

  • Guest
Re: how to create multi subdomains like this ?
« Reply #27 on: January 31, 2013, 08:28:42 pm »
 
I noticed that you have www.bangalore.offersvalley.com/bangalore "Bangalore" 2 times. You should not have that 2 times.
You created a sub-domain - bangalore @ offersvalley.com = (Linux Hosting) www.bangalore.offersvalley.com. = (MS Hosting) = www.offersvalley.com/bangalore. Then it appears you pointed it to a folder called bangalore. This will not work unless there is an Osclass installation in that folder but then the main.php will open and NOT a region or city.

To show ONLY advertisements from one city, the sub-domain MUST be "pointed" (Re-directed" to THAT cities search result page.
Example - The sub-domain www.bangalore.offersvalley.com or www.offersvalley.com/bangalore would be pointed to :
http://www.offersvalley.com/index.php?page=search&sPattern=Bangalore
 
 
The ONLY way to point (Re-direct) a sub-domain is to access the hosting provider control panel. I can NOT tell you where within that control panel to make this change. All hosting providers I know of allow you to change this.
 
Another way is creating a "gateway" page containing links to the cities you want. You could start with a blank page or use a theme main.php page and delete everything you do ot want. Then enter in text and/or images. Then link that text and/or images to a cities serach result page. Save the new page as index.html (Perferred method) or as index.php but be sure there is NOT a index.php already in the folder. If using this method you should point (Re-direct) the main domain to this gateway page. Access to all the Osclass installations will be made through this gateway page.
Please read my past posting about this.
http://forums.osclass.org/general-help/multiple-osclass-installs/?PHPSESSID=356277c47bb4217834f23c29c48d28f9
 
http://forums.osclass.org/general-help/show-cities-in-subdomain-how/?PHPSESSID=356277c47bb4217834f23c29c48d28f9
Tom
« Last Edit: January 31, 2013, 08:46:33 pm by tomshaft »

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: how to create multi subdomains like this ?
« Reply #28 on: January 31, 2013, 08:59:35 pm »
Should i install osclass in all subdomain?

bwakad247

  • Full Member
  • ***
  • Posts: 221
Re: how to create multi subdomains like this ?
« Reply #29 on: April 05, 2013, 04:57:33 am »
I am confused about this post. Right now if I click on a state/region it already displays as domain-name/region. So why need subdomains that do the same?