Howto: create homepages and 'subdomains' per user

17 years 9 months ago #16147 by Lemm
hey

maybe i'm too stupid for this ....

i want to have a profile link like domain.de/user/Lemm
i have tried to edit your htaccess code but nothing work :(
cann u help me pls to solve this ?

mfg Lemm

Please Log in to join the conversation.

17 years 9 months ago #16429 by michaelg
Hi,

I saw this and was thinking...

If the only reason a subdomain.mydomain.com structure is not possible because of the joomla cookie, then would it be possible to create the webpages outside of Joomla?

For example;

1) User subscribes to Joomla site, say "mysite.com"
2) Specifies page name, say "seeme"
3) Joomla component then creates a folder called called www.mysite.com/seeme/index.html
4) User edits homepage etc - the Joomla system updates index.html under /seeme/ folder - extra pages created etc

When user wishes to "show" their site their describe it as www.seeme.mysite.com which uses the redirection method used here (or whatever modification is required).

In this sense, Joomla is the "editor" and the "content" remains standalone outside of Joomla.

Your thoughts?
Michael

Please Log in to join the conversation.

17 years 9 months ago #16483 by nevsie
i am having slight trouble with this... i have corrected the htaccess as directed... but the page only says 'This profile does not exist or is no longer available'

I change the end of the rewrite to [R,L] so i could see the url that was being outputted... and i noticed that it had replaced the username with index.php

I can only assume that the rewrite is being to clever for itsself and re-writing the redirected rule and using index.php instead of the username... effectively this is where the huge loop comes in that i think was mentioned before...

Now i believe i am running php in cgi mode as the hosts say this is more secure... and i beleive this is where the problem arises from... I have seen this mentioned on the SMF forum forum.

Any ideas how to solve it?
Thanks N

Please Log in to join the conversation.

17 years 9 months ago #16631 by ramonskie
if my joomla is in a subdir

wil my htaccess be like this??

[code:1]
RewriteEngine On

Options +FollowSymLinks


DirectoryIndex /index.php
RewriteBase /

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


RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d

#
# usernaam toestand
#

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

or must it be like this?

[code:1]
RewriteEngine On

Options +FollowSymLinks


DirectoryIndex /index.php
RewriteBase /jungle/

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


RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d

#
# usernaam toestand
#

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

Please Log in to join the conversation.

17 years 9 months ago #16668 by tulula3
I have had the url/username virtual subdomain working for a while now but would like to know if someone's created a plugin or hacked the code yet to have an image and/or link like myspace.com has show members can announce automatically their URL on the website:

Link to my profile:
mywebsite.com/username

or

My URL on *this website*
mywebsite.com/username

... you get the picture... having an image next to the link also adds a bit more pizazz

Lisa

Please Log in to join the conversation.

17 years 9 months ago #16841 by zappy
Hello


I am having a bit of trouble with this. zapfoo.com

It is referring back to the home page


Can you help ?

Rob@zapfoo.com

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.280 seconds

Facebook Twitter LinkedIn