Howto: create homepages and 'subdomains' per user

17 years 9 months ago #17007 by tulula3
tulula3 wrote:

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


Bump! Anyone?

Please Log in to join the conversation.

17 years 9 months ago #17221 by trail
Timpi wrote:

Hello everyrbody,

it is not working on my site of the web too :-(

Surely I did something wrong but what the :evil: did I wrong? Used the description of djtrail and the Forum information I have seen...

My file:

##
# @version $Id: htaccess.txt 1570 2005-12-29 05:53:33Z eddieajau $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

Options +FollowSymLinks

#
# mod_rewrite in use
#

RewriteEngine On

##
## 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 /YourJoomlaDirectory
RewriteBase /
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ index.php?option=com_comprofiler&task=userProfile&user='$1' [L]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php


Any ideas?

Many Thanks
Timpi

Post edited by: Timpi, at: 2006/07/12 23:24

Post edited by: Timpi, at: 2006/07/12 23:25


the
# Update YourJoomlaDirectory (just / for root)
/
# RewriteBase /YourJoomlaDirectory
part is definately not ok.. remove that lonely slash :)

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 :)

Please Log in to join the conversation.

17 years 9 months ago #17355 by nevsie
second attempt at trying to reply!!!

In short, i tried again with exactly the same file and it worked with no problems at all... Do not know how or why, but it does. I suspect somehting changed with the host.
But thanks djtrail...

for reference i attached a txt file of my htaccess if it is of help to anyone else. it is combined with the original joomla one i had.

Attachment mydoc.txt not found

Attachments:

Please Log in to join the conversation.

17 years 9 months ago #17478 by nevmega
Is there a working example of this? I do not have open sef and would like to try to apply this technique. Also, is there a link to the newest version so I may be current.

_MEGA

B)

Please Log in to join the conversation.

17 years 8 months ago #17747 by ginsu
I have been tryin for days to get this to work.

I have managed to get the subdomains to redirect so

sub.domain.com is converted to www.domain.com/sub

But the usernames are not found. Instead I get a 404 not found error.

Please can someone offer some assistance. My htaccess file is

[code:1]
RewriteEngine On

RewriteOptions MaxRedirects=10

DirectoryIndex index.php

RewriteBase /html/

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

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

Please Log in to join the conversation.

17 years 8 months ago #18373 by demitkecil
B) Nice and Simple , Thank You

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.281 seconds

Facebook Twitter LinkedIn