Creating a CUSTOM URL for users/members

18 years 1 month ago #5663 by lennox
Replied by lennox on topic Re:Creating a CUSTOM URL for users/members
i can not download you're HTacces zip file, can you please post it on the forum as text?
Thnx!


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

Please Log in to join the conversation.

18 years 1 month ago #5664 by lennox
Replied by lennox on topic Re:Creating a CUSTOM URL for users/members
revo2001 wrote:

THis is what is actually needed for this to work:

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



Works like a charm!


oke, i fixed it,

the 'code' above is not working for me, i got my site installed on: www.mysite.com/v2

So here is my solution that worked for me:

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

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


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

Please Log in to join the conversation.

18 years 1 month ago #5665 by hedingsi
Replied by hedingsi on topic Re:Creating a CUSTOM URL for users/members
Sorry Lennox

I can't add my code for any reason. so i maked a new zip. you can download it here: www.soundofdream.com/htaccess.zip

Please Log in to join the conversation.

18 years 1 month ago #5712 by SIGHUP
Replied by SIGHUP on topic Re:Creating a CUSTOM URL for users/members
Heh that ones still doesn't work.

This is a bit frustrating, I'm sure it has to do with some server options why it doesn't work for me.

Please Log in to join the conversation.

18 years 1 month ago #5713 by SIGHUP
Replied by SIGHUP on topic Re:Creating a CUSTOM URL for users/members
lennox wrote:

revo2001 wrote:

THis is what is actually needed for this to work:

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



Works like a charm!


oke, i fixed it,

the 'code' above is not working for me, i got my site installed on: www.mysite.com/v2

So here is my solution that worked for me:

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

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


Your fix was just a space? between / and index.php?blah blah blah?

Please Log in to join the conversation.

18 years 1 month ago #5716 by lennox
Replied by lennox on topic Re:Creating a CUSTOM URL for users/members
it worked without the slash,
i think because i;m running my site on a www.mysite.nl/v3
It's a different directory then the standerd root.
I'm hoping you understand my weird english words. It's to late in the night at the moment .


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 1.242 seconds

Facebook Twitter LinkedIn