| 
Welcome, Guest

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

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

Re:url/username, no prob, now link on profile? 5 years, 7 months ago #17007

  • Posts:
  • Karma:
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:
http://mywebsite.com/username

or

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

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

Lisa


Bump! Anyone?

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

  • Posts:
  • Karma:
Timpi wrote:
Hello everyrbody,

it is not working on my site of the web too

Surely I did something wrong but what the 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

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

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

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

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

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

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

 
RewriteEngine On
 
RewriteOptions MaxRedirects=10
 
DirectoryIndex index.php
 
RewriteBase /html/
 
RewriteCond %{HTTP_HOST} ([^/]+)\.musikshed\.com [NC]
RewriteCond %1 !www$ [NC]
RewriteRule ^(.*)$ http://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]
 

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

  • Posts:
  • Karma:
Nice and Simple , Thank You
Time to create page: 0.97 seconds