Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


Create sub-domain
Date: 2006/06/07 15:56 By: Dionysus Status: User  
Karma: 3  
Senior Joomlapolitan

Posts: 67
graphgraph
Hi There,

I registered with http://www.vidilife.com/

with username: doggie

then the system automatically generated a sub-domain.

doggie.vidilife.com

I was wondering if this was possible with CB?

Thanks all,
D
Click here to see the profile of this user The topic has been locked.

Re:Create sub-domain
Date: 2006/06/07 16:10 By: silexian Status: User  
Karma: -2024  
Senior Joomlapolitan

Posts: 93
graphgraph
don't think it's related to CB but more to your hosting features.

Not a lot have that feature. Otherwise, you may write or use a script that deals with CPanel APIs.
cf http://www.hotscripts.com
help me decrease my Karma ! i AM a bad boy Hurry up or i'm gonna eat your soul
Click here to see the profile of this user The topic has been locked.

Re:Create sub-domain
Date: 2006/06/07 18:23 By: mikko Status: User  
Karma: 106  
Platinum Joomlapolitan

Posts: 2230
graphgraph
If you own your server, you can configure your apache url rewriting engine to fetch data from CB tables.

http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

-mikko
Click here to see the profile of this user The topic has been locked.

Re:Create sub-domain
Date: 2006/06/08 05:12 By: Dionysus Status: User  
Karma: 3  
Senior Joomlapolitan

Posts: 67
graphgraph
unfortunately, I am hosting my websites thru a hosting company.

Thanks for your comments
Click here to see the profile of this user The topic has been locked.

Re:Create sub-domain
Date: 2006/06/15 03:27 By: trail Status: Admin  
Karma: 656  
Admin

Posts: 473
graphgraph
Yes this is possible. I answered this question before.

First of all, it is not really a subdomain but it is using mod-rewrite.

For this to work you need a dns server that directs *.domain.com to domain.com

Then you modify the mod_rewrite line for user homepages and it picks up the rest.

Good luck
DJ Trail.
CB Co-Founder & Test-Lead.
Plugins: My Age, Starsign Matchmaking Horoscope, My Visitor, My Highscores, My ProfileID,
My Components: Import & Invite Karma Casino (Use Test / Test)
My Modules: Many
Click here to see the profile of this user The topic has been locked.

Re:Create sub-domain
Date: 2006/06/15 07:00 By: trail Status: Admin  
Karma: 656  
Admin

Posts: 473
graphgraph
I just did it on my website..

http://trail.djtrail.nl http://tester.djtrail.nl etc etc

the rewrite line i used was

RewriteCond %{HTTP_HOST} ([^/]+).djtrail.nl [NC]
RewriteCond %1 !www$ [NC]
RewriteRule ^(.*)$ http://www.djtrail.nl/%1 [L]

+ the old rewrite line for homepages makes:

RewriteRule ^([^/]+)/?$ index.php?option=com_comprofiler&task=userProfile&user='$1' [L]

for this to work i first had to ditch all my real subdomains (you can have both if you want a headache).. and make *.djtrail.nl go to djtrail.nl via dns settings.
DJ Trail.
CB Co-Founder & Test-Lead.
Plugins: My Age, Starsign Matchmaking Horoscope, My Visitor, My Highscores, My ProfileID,
My Components: Import & Invite Karma Casino (Use Test / Test)
My Modules: Many
Click here to see the profile of this user The topic has been locked.

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC4)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC4, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers and now also to all registered joomlapolitans.

CB Login