| 
Welcome, Guest

Howto: create homepages and 'subdomains' per user
(1 viewing) (1) Guest

TOPIC: Howto: create homepages and 'subdomains' per user

Re:Howto: create homepages and 'subdomains' per us 5 years, 2 months ago #24899

  • Posts:
  • Karma:
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?

Re:Howto: create homepages and 'subdomains' per us 5 years, 1 month ago #27159

  • Posts:
  • Karma:
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

Re:Howto: create homepages and 'subdomains' per us 5 years, 1 month ago #27293

  • Posts:
  • Karma:
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 "myhost/joomla/index.php?option=com_compr...serProfile&user='user1'"
and I want to avoid that.

Any ideas on this?
Thanks.

Re:Howto: create homepages and 'subdomains' per us 5 years, 1 month ago #27535

  • Posts:
  • Karma:
OMFG!!! This is just perfect!!

Re:Howto: create homepages and 'subdomains' per us 5 years, 1 month ago #28680

  • Posts:
  • Karma:
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

Re:Howto: create homepages and 'subdomains' per us 5 years, 1 month ago #28690

  • Posts:
  • Karma:
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!!!
Time to create page: 0.94 seconds