Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Need advice on dynamic website structure
Old 03-19-2011, 10:29 AM Need advice on dynamic website structure
Super Talker

Posts: 113
Trades: 0
I'm trying to make a website where the content changes slightly depending on who sent them there (but the site design and most of the content will stay the same). For instance, I have a group of people figuratively named:

John
Pete
Brian

And my website is www.website.com. Now, I'll store their individual data in a row in a mySQL table, and I want to pull their personal data from the table and insert it in the website when they send someone. My first question is, should I do this by creating subdomains or putting a variable in the url? The website is going to be a Word Press website, so I could have:

john.website.com
pete.website.com
brian.website.com

And just put the index.php file in the subdomain directory and Word Press would know that it's installation is in a different folder (the root folder) and work normally (I think). Then I could check the url of the website in php and grab the subdomain and use that in my query getting the personalized data.

Or, I could use variables in the url, like:

www.website.com/?person=john
www.website.com/?person=pete
www.website.com/?person=brian

And use GET to grab the person from the url and use that when querying the data.

There will also be more pages then just the homepage, such as www.website.com/my-hobbies. So for John the two methods would look like:

john.mywebsite.com/my-hobbies

and

www.website.com/my-hobbies/?person=john


Which would be better for SEO? I still would want the SEO to be best for the root website (i.e. www.website.com and it's child pages) and for it to show up in search results first.

Any thoughts?

Thanks for your advice!
Learnin' n00b is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-19-2011, 05:00 PM Re: Need advice on dynamic website structure
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,391
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Which would be better for SEO? I still would want the SEO to be best for the root website (i.e. www.website.com and it's child pages) and for it to show up in search results first.
All of them,
None of them,
Any of them.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-19-2011, 05:13 PM Re: Need advice on dynamic website structure
Super Talker

Posts: 113
Trades: 0
Quote:
All of them,
None of them,
Any of them.
Could you elaborate?

Is there a better way, or one that you think would work best?

I appreciate your advice.
Learnin' n00b is offline
Reply With Quote
View Public Profile
 
Old 03-19-2011, 05:24 PM Re: Need advice on dynamic website structure
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,391
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
There is no "better way" any method is as good as the other, it's how the pages ar PROMOTED that makes the difference.

BTW Why not just use Wordpress MU rather than reinvent the wheel?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-19-2011, 05:50 PM Re: Need advice on dynamic website structure
Super Talker

Posts: 113
Trades: 0
The multisite option in Wordpress seemed really complicated and more difficult than, say, just appending "?person=John" to the url and making a few database calls in php to change the content.

The thing is, I'm probably going to have several dozen people (eventually maybe over a hundred, I'm not sure at this point), and I'm afraid that the multisite option in Wordpress is going to be really difficult.
Learnin' n00b is offline
Reply With Quote
View Public Profile
 
Old 03-19-2011, 06:11 PM Re: Need advice on dynamic website structure
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,391
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Seems to work Ok on Wordpress.com with thousand of users.


Basically all it needs is to configure wildcard DNS and a couple of lines in .htaccess. The script handles the rest as users signup or are created.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-20-2011, 09:28 AM Re: Need advice on dynamic website structure
Super Talker

Posts: 113
Trades: 0
One last question about if I do this with the variable in the URL. Say there's a page here: www.website.com/tropical-fruits. If there are links on the internet to the page (which has *slight* differences depending on the name in the variable):

www.website.com/tropical-fruits
www.website.com/tropical-fruits?person=John
www.website.com/tropical-fruits?person=Pete

If someone were to search Google for "tropical fruits," and supposing that my website was in the top results, which of those above links would be more likely to show up? The base URL, or one of the URLs with a variable in it?

Last edited by Learnin' n00b; 03-20-2011 at 09:30 AM..
Learnin' n00b is offline
Reply With Quote
View Public Profile
 
Old 03-20-2011, 10:08 AM Re: Need advice on dynamic website structure
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,391
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The one with most links pointing to it.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-20-2011, 12:01 PM Re: Need advice on dynamic website structure
Super Talker

Posts: 113
Trades: 0
OK, thanks. I wasn't sure if the "base URL" would have more "weight" or whatever you want to call it

Thanks for all your advice.
Learnin' n00b is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need advice on dynamic website structure
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29207 seconds with 12 queries