Howto: create homepages and 'subdomains' per user

17 years 7 months ago #18855 by Tim_Myth
ginsu wrote:

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.

I get the same problem. The URL rewrites, but the username is never found. I've tried both upper and lowercase variations to no avail, so I know it is not my fat fingers.

Me | My Wife | My Hobby
My latest project: www.fmbrides.com

Please Log in to join the conversation.

17 years 6 months ago #21261 by jmaduk
Where you able to get this working? I'm having the same problem "This profile does not exist or is no longer available

www.MySmallBizU.com
1000 Videos, Hosting, Software, Support,
Coaching and Community!

Please Log in to join the conversation.

17 years 5 months ago #22375 by sanjiovani
Has anyone come up with a solution for customer usernames for members on CB

i.e. www.web.com/yourname

I believe this is a very important feature of CB.

Can some please take a moment and provide step by step instructions.

I have tried to amend my htaccess file but it has not worked as of yet.

Thanks in advance

cheers

Sanjiovani

Please Log in to join the conversation.

17 years 5 months ago #22384 by jmaduk
Yep I got it working!

www.wmfsb.com/jmaduk is an example. What I wasn't able to fix was the subdomain... jmaduk.wmfsb.com type of lihnk which is giving me a 500 internal server error...

I think that has to do with the number of rewrites that my server is setup for though...

How did I get it to work?

Trial and error with the existing posts in this thread, specifically the order of the changes to htaccess file.

The other thing is that I"m only running the basic Joomla sef, no 3rd party SEF is installed... Good Luck.. If you want a copy of my htaccess file just PM me..

www.MySmallBizU.com
1000 Videos, Hosting, Software, Support,
Coaching and Community!

Please Log in to join the conversation.

17 years 5 months ago #22662 by Makis

##
# @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
##
SecFilterEngine Off
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 /site

#
# Rules
#
RewriteBase /

RewriteEngine on
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
Redirect /forum/index.php www.mysite/component/option,com_smf/Itemid,110/



########## Begin - Rewrite rules to block out some common exploits
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits


i have the same problems of
"This profile does not exist or is no longer available"
despite i followed all the instructions.
I have the proble of not finding the username, i ve Joomla SEF on but this happens also with Joomla SEF off...
i d appreciate any help!

Please Log in to join the conversation.

17 years 4 months ago #24874 by rswennen
I need my joomla site to work with 2 different URL's.

So I have one site www.mysite.com
and it shoulmd work with www.mysite.com and www.anotherdomain.com

Is there any way to do this without beaking the site
eg. by frame forewarding or using mod rewrite.

I understood from Trail's document this will be difficult because the login cookie is using the subdomain.
Would it be difficult to create a hack for this ?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.292 seconds

Facebook Twitter LinkedIn