Message Text |
Hey Paul,
Here is my dilemma:
I got a WSN installed on www.domain.com . I have multiple subdomains here, such as bob.domain.com, steve.domain.com, etc. These are all usernames (members) in my database.
My original idea was to have all bob's links accessible by simply going to bob.domain.com. First, I thought of simply generating static html pages of their link lists and their actual link details, and put them into the 'bob' directory on the server (the one that houses the subdomain). This is all nice and dandy, no problem.
BUT, what to do with searching? Suppose I get a member who has 1000 links. Even if I put the search form on that static index page I generated for his links for example, the results would bring the visitor all the way back to www.domain.com/search.php?.....
SO, is there a way to keep a visitor who first visited bob.domain.com, ON bob.domain.com, no matter what php is actually accessed?
I was thinking of generating static pages for all possible search results for the member, OR some kind of Rewrite Rule (no idea about them), OR a copy of the needed php files in the directory that houses bob's subdomain, then have them use the main WSNLINKS database. How would you do that? Should I just simply install the WSN in each subdomain? In this case, is that ok with you? If so, how do I make sure that it uses the original WSNLINKS database?
If Rewrite rules are the way to go, then:
1. how do I tell htaccess what subdomain the visitor is on, and then include that in the Rewrite rule as well? (you already answered an old post of mine about how to grab the URL you are on, but not for the htaccess)
2. how do I Rewrite evertyhing that starts with search.php, ONLY if the search string contains a MEMBERID variable, AND make sure the the visitor is kept on that MEMBERID's username.domain.com??
(if any of this made sense, let me know)
Thanks
David |