How to have all subdomains operate with root programs.

5 replies
I have a mostly php site, and it is real estate. I want my agents to have subdomains off the main site but do not want to have to make a copy of the entire program over and over for each sub.
This might be a htaccess problem and might better be asked in an htaccess fourm, but even htaccess is being used with my php programs.

Here is the example main domain root is myrealestate.com
subdomain might be bobby.myrealestate.com or susie.myrealestate.com
I want anyone visiting the bobby subdomain to be looking at the main site files, but i want to keep the subdomian naime in th browser at all times. .. so no one knows they are accessing the main domain.

Any ideas how this can be done for all the php files in the root.
Its fairly complex with lots of files, as it is and Idx site using extensive access to huge MLS files on the mysql...

Thanks in Advance.

Or at least point me to some place that might help me solve this problem.
#chesapeake real estate #norfolk real estate #operate #programs #root #subdomains #virginia beach
  • Profile picture of the author Bruce Hearder
    How about trying something really simple that might actually work..

    in the root of each subdomain (say susie.yoursite.com) put in a single HTML file called index.html that contains an iframe that points to the root directory.

    Site its width to100% and height to 100% and none of your visitors will be none the wiser..

    Hope this helps

    Bruce
    {{ DiscussionBoard.errors[443763].message }}
    • Profile picture of the author tommytx
      Great idea. I am very familiar with the frame aspect, I just had not thought of it as most of the sites I work with will break out the frame in one flail swoop but since the main site belongs to me I will just slap my wrist if I try to break myself out... Thanks.. I will see how it goes... as you are right.. I know that will work great.. will let you know..
      IF anyone else has ideas please throw them in.
      Signature

      Free Pay Per Click Services http://www.52payperclick.com We all know FREE usually means scam or bait and switch.. so to settle that question check out my I love me wall at http://www.52payperclick.com/tom/attaboy.htm to see what all the folks say about my free services.

      {{ DiscussionBoard.errors[444351].message }}
      • Profile picture of the author tommytx
        OOPs! Just thought of a problem, each subdoman will have lots of pages indexed, such as susie.mydoman.com/greenrun-subdivision.htm
        Now the same page is in the root, so I may have to trap each url with htaccess and rewrite all urls with the main domain name such as
        Rewrite susie.mydoman.com/greenrun-subdivision.htm to mydoman.com/greenrun-subdivision.htm.
        Shouldn't be too hard I just need to study some htaccess code unless one of you wizards already know the rewrite rule for doing this.
        In other words google will have one entry for:
        susie.mydoman.com/greenrun-subdivision.htm
        and one entry for
        mydoman.com/greenrun-subdivision.htm

        I know... i might get hit with some duplicate pages, but millions of Real estate sites do this very thing and I know of none getting banned.. may hold the pr down a little, but that's ok...
        Signature

        Free Pay Per Click Services http://www.52payperclick.com We all know FREE usually means scam or bait and switch.. so to settle that question check out my I love me wall at http://www.52payperclick.com/tom/attaboy.htm to see what all the folks say about my free services.

        {{ DiscussionBoard.errors[444376].message }}
  • Profile picture of the author tommytx
    Thanks Bruce that worked great for me..
    Where is the button that gives you a formal thanks?
    Signature

    Free Pay Per Click Services http://www.52payperclick.com We all know FREE usually means scam or bait and switch.. so to settle that question check out my I love me wall at http://www.52payperclick.com/tom/attaboy.htm to see what all the folks say about my free services.

    {{ DiscussionBoard.errors[445352].message }}
  • Profile picture of the author Bruce Hearder
    No need for formal thanks..
    Just glad I could be of some assistance..

    Take care

    Bruce
    {{ DiscussionBoard.errors[445377].message }}

Trending Topics