|
|
|
Re:members page
|
|
Date: 2005/12/06 10:47
|
By: JSalvador
|
Status: User
|
|
|
Karma: 0  
|
|
Junior Joomlapolitan  | Posts: 29 |   | |
|
| Code: | ##
# @version $Id: htaccess.txt 47 2005-09-15 02:55:27Z rhuk $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourJoomlaDirectory (just / for root)
# RewriteBase /YourJoomlaDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?option=com_comprofiler&task=userProfile&user='$1'
|
For some reason this isn't working for me. Above is the exact code in my .htaccess file. Can someone give some input? I've tried with SEF on and off.
Big Natural Home Remedy Encyclopedia Christian News and Resources
|
|
The administrator has disabled public write access. |
|
|
|
Re:members page
|
|
Date: 2005/12/06 22:42
|
By: Phil_K
|
Status: User
|
|
|
Karma: 2  
|
|
Fresh Joomlapolitan  | Posts: 16 |   | |
|
Hi.
@JSalvador Well, looks to me that it works now on your site. I've called test and givemewings7 on your page and profile are shown.
Greets Phil.
|
|
The administrator has disabled public write access. |
|
|
|
Re:members page
|
|
Date: 2005/12/13 14:08
|
By: trail
|
Status: Admin
|
|
|
Karma: 640  
|
|
Admin  | Posts: 472 |   | |
|
Lol im so ashamed.. but i too noticed that the own profile was no longer available using the default component link. Since i didnt have this link i didnt notice.. but when a user uploaded a picture to their profile they got 'this profile is no longer available' after their upload.. i backtracked it to the htaccess change *shrug*
Investigated the least amount of regex possible from here
http://www.amk.ca/python/howto/regex/regex.html#SECTION000300000000000000000
and came up with:
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ /index.php?option=com_comprofiler&task=userProfile&user='$1' [L]
now everything seems to work.. profiles with bad chars (did not test all) and the default links.. hope it helps.. 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 
|
|
The administrator has disabled public write access. |
|
|
|
Re:members page
|
|
Date: 2006/01/06 10:46
|
By: dsendecki
|
Status: User
|
|
|
Karma: 13  
|
|
Gold Joomlapolitan  | Posts: 386 |   | |
|
Is there any way to get this .htaccess rule to play nicely with Emir Sakic's SEF Advanced?
I've had no luck! Small Press Exchange | Free eBook templates for self publishing | My Blog
|
|
The administrator has disabled public write access. |
|
|
|
Re:members page
|
|
Date: 2006/01/07 01:23
|
By: spikec
|
Status:
|
|
|
Karma: 13  
|
|
Senior Joomlapolitan  | Posts: 81 |   | |
|
Trail, first of all thanks for everything you've done for CB -- it is much appreciated here. I've been playing with this code and still can't get it to work. A couple ???'s if I may:
1. I have joomla installed in its own directory (www.mysite.com/joomla) and added the code to the .htacess file in this directory. Does it also need to be in the .htaccess file that sits in the root directory?
2. If I have members profiles only available to registered members, I assume a user would have to be logged in to make this work. Any way around this?
Thanks again for your help,
Spike
|
|
The administrator has disabled public write access. |
|
|