Creating a CUSTOM URL for users/members

18 years 2 months ago #5717 by TUSE
Thought I posted earlier.. not sure what happend.. ok, here is the deal..

I setup the .htacess and that part is working fine.. I can go to mydomain.com/mambo/username and view there profile..

The problem now is that when I click on the memberlist, it gives me a 404 error and I cannot view any profiles on the list. What am I doing wrong?

Tim

Also when I click on Myprofile it gives me a 404.. but I guess that would be expected

Post edited by: TUSE, at: 2006/02/07 04:47

Please Log in to join the conversation.

18 years 2 months ago #5718 by philt
Replied by philt on topic Re:Creating a CUSTOM URL for users/members
I am also having toruble getting this working. I am using 404 sef; it seems to work with everything except user profile pages. The URLs for the user profile pages look like this:

mambo/userprofile.html
mamob/userprofile-2.html

Please Log in to join the conversation.

18 years 2 months ago #5733 by hedingsi
Replied by hedingsi on topic Re:Creating a CUSTOM URL for users/members
Hi Tuse

I had the same problem. thats the matter why i disabled the Search Engine Friendly URLs under SEO. without sef it worked for me. Just let the htaccess file working :evil:

@SIGHUP

You need to have an apache for this (not IIS, IIS dont can handle with htaccess files!)

Post edited by: hedingsi, at: 2006/02/07 09:20

Please Log in to join the conversation.

18 years 2 months ago #5747 by SIGHUP
Replied by SIGHUP on topic Re:Creating a CUSTOM URL for users/members
Your're english is fine dude.

Hmm, actually this is what's happening right now.


@hedingsi

I turned off SEO under the administrator/global configuration panel. Now it freaking works! Just like you said.

Aha! Now turned it back on with the corresponding RewriteEngine code and guess what? It doesn't work any more it gives a 404 when trying to access a users profile via mysite.com/viewprofile

Very interesting, we'll see what happens next.

I've seen this work on other sites with SEO turned on, hope it doesn't come to deciding between features.

Post edited by: sighup, at: 2006/02/07 16:14

Please Log in to join the conversation.

18 years 2 months ago #5861 by TUSE
Thanks a million hedingsi. That seemed to solve the issue perfectly... very much appreciated..

Tim

Please Log in to join the conversation.

18 years 2 months ago #5872 by mediaguru
Replied by mediaguru on topic Re:Creating a CUSTOM URL for users/members
It's not working for me. Here's my htaccess code:

[code:1]##
# @version $Id: htaccess.txt 1005 2005-11-13 17:33:59Z stingrey $
# @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

# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourJoomlaDirectory (just / for root)

# RewriteBase /YourJoomlaDirectory

#
# Rules
#
#
# ProfileRedirector V 1.3
#
# Make sure your host allows option override
# and has ModRewrite installed

# activate Rewrite enginge

RewriteEngine On


# RewriteBase /home/.sites/75/site1/web



RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d


# RewriteRule ^(.*) index.php?cb_username=$1
RewriteCond %{REQUEST_FILENAME} !.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

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

No matter what I type (www.mysite.com/username or mysite.com/anything) goes to the home or index page.

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.421 seconds

Facebook Twitter LinkedIn