Howto: create homepages and 'subdomains' per user

17 years 5 months ago #24899 by providence
thanks trail

got this working....

btw, is it possible to create a link to the profile ?

like

domain/index.php=user? or something?

that would go to the specific user's domain?

or is there a way to create a tab that displays the current domain?

domain/user?

Please Log in to join the conversation.

17 years 4 months ago #27159 by guilliam
any light with working it with opensef? seems like have to modify opensef it self for this to work together since the rules are in .htaccess itself. thats what i see ;)

- g

Please Log in to join the conversation.

17 years 4 months ago #27293 by Dodlee
Thanks to Trail for the guide and to everyone who contributed.

This thing worked fine when my Joomla site was located in the root dir, but now I had to move it to a subdir on the server and some stuff doesn't work well-
Some resources with relative URLs are missing, mainly the custom template CSS and some image files used by Nant's profile gallery plugin (icons and thumbnails).

If I change the rewrite rule to use external redirection (E.G. change '[L]' to '[R,L]') everything is good but the address in the browser changes to "http://myhost/joomla/index.php?option=com_comprofiler&task=userProfile&user='user1'"
and I want to avoid that.

Any ideas on this?
Thanks.

Please Log in to join the conversation.

17 years 4 months ago #27535 by caeza
OMFG!!! This is just perfect!! :woohoo:

Please Log in to join the conversation.

17 years 3 months ago #28680 by Makis
Hello,
Some hours ago i tried to use this hack.

I noticed that the user url works BUT when i try to login from the cb login module i get this message:

"You are not authorised to view this resource."

if i try to login through joomla's default login module i dont have any problem.

this is the htacess i m using:

##
SecFilterEngine Off
Options +FollowSymLinks

#
# mod_rewrite in use
#

RewriteEngine On

<Files *.ini>
Order deny,allow
Deny from All
</Files>

##
## NOTE!
## When using multiple Joomla sites or other web applications in sub-folders,
## you must explicitly turn the RewriteEngine off or use the settings
## recommended for the application
##

# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourJoomlaDirectory (just / for root)

# RewriteBase /site

#
# Rules
#

RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ index.php?option=com_comprofiler&task=us

Please Log in to join the conversation.

17 years 3 months ago #28690 by Makis
its fixed now,
i had the partial code replaced by this

RewriteEngine On
RewriteOptions MaxRedirects=10
DirectoryIndex index.php
RewriteBase /

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ index.php?option=com_comprofiler&task=userProfile&user='$1' [L]


and everything went great!!!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.302 seconds

Facebook Twitter LinkedIn