|
|
Create sub-domain
|
|
Date: 2006/06/07 15:56
|
By: Dionysus
|
Status: User
|
|
|
Karma: 3  
|
|
Senior Joomlapolitan  | Posts: 67 |   | |
|
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
|
|
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 |   | |
|
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
|
|
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 |   | |
|
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
|
|
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 |   | |
|
unfortunately, I am hosting my websites thru a hosting company.
Thanks for your comments
|
|
The topic has been locked. |
|
|
|
Re:Create sub-domain
|
|
Date: 2006/06/15 03:27
|
By: trail
|
Status: Admin
|
|
|
Karma: 656  
|
|
Admin  | Posts: 473 |   | |
|
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 
|
|
The topic has been locked. |
|
|
|
Re:Create sub-domain
|
|
Date: 2006/06/15 07:00
|
By: trail
|
Status: Admin
|
|
|
Karma: 656  
|
|
Admin  | Posts: 473 |   | |
|
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 
|
|
The topic has been locked. |
|
|