Sub Menu
Links Menu
Online Users

In total there are 328 users online :: 2 registered, 0 hidden and 326 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot] based on users active over the past 60 minutes

.htaccess mod rewrite for user profile pages

General discussion of anything. Discuss a topic in and out of IntegraMOD

Moderator: Integra Moderator

.htaccess mod rewrite for user profile pages

PostAuthor: richiebgood » Mon Jan 21, 2008 1:42 pm

I am wondering if this is possible. I want to try and use the PCP more on my site buy adding more sections and allowing members to add info about their paintball gear for etc.

Can i have some sort of rewrite rule that if I typed in http://www.mydomain.com/userx that it would take me me to the profile of userx? another option would be to set up a folder for each user and have a redirect but that would be a pain in the *ss to do for every body.
Last edited by richiebgood on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

Re: .htaccess mod rewrite for user profile pages

PostAuthor: CaNNon » Mon Jan 21, 2008 8:08 pm

Your way beyond what .htaccess is about, yea sure you can redirect but everyone goes to the same place. You need to redirect a logged in member to there own userx page and have them stay logged in.

If I understand what your asking. <img>
Last edited by CaNNon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 11:15 am
Cash on hand: 0.00

PostAuthor: richiebgood » Tue Jan 22, 2008 3:32 am

i was thinking more like those social networking pges like where you have your own username i.e. http://www.bebo.com/userx. When you type that in you are brought brought to their page but it is then http://www.bebo.com/memberid=1254345 etc.

Do you get what i mean?
Last edited by richiebgood on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

Re: .htaccess mod rewrite for user profile pages

PostAuthor: CaNNon » Tue Jan 22, 2008 8:56 am

memberid=1254345


Yea that change looks like they have been logged in then redirected to a page of there own.
Last edited by CaNNon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 11:15 am
Cash on hand: 0.00

Re: .htaccess mod rewrite for user profile pages

PostAuthor: MWE_001 » Tue Jan 22, 2008 10:30 am

I am working on this one. I got a mod from an author that has since a year and half ago disappeared without a trace. Kinda Hyperion like <img> Ive tried many a emails and no response for atleast a year now. I was going to ask her if it could be ported and released for PCP, but as I said, no such luck with replies.

Ive got it all in and working but in a root directory. If your site is in a subfolder it likes to error. This is another one Im working on to work with PCP. Ive got it on my test site and it is ACP configurable, BUT the URL I can not get to show up on the profile page itself.

And it does run off of a .hta access file. Now the problem with it is, a website with many users, that .hta file would get so dam big it would't even be funny.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: richiebgood » Tue Jan 22, 2008 10:38 am

how does myspace and them work? Do they use ht access i wonder?
Last edited by richiebgood on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

Re: .htaccess mod rewrite for user profile pages

PostAuthor: CaNNon » Tue Jan 22, 2008 10:42 pm

You can't do the login to the forum stuff with .htaccess, php would need to wright to it
so you could do redirection... but even that on a per user basis would be huge and then security hole of leaving a .htaccess open to read and wright?

I would really like to have a look at that could you pm me a link?
Last edited by CaNNon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 11:15 am
Cash on hand: 0.00

Re: .htaccess mod rewrite for user profile pages

PostAuthor: MWE_001 » Wed Jan 23, 2008 2:39 pm

Yeah I do not like a .hta open to read and write either. The mod in question that I/m referring to is in use on my website, but it is being worked on. I got it to show up on my page as, for example, http://www.mysite.com/mwe_001 and it will infact go to my profile, but the short url does not stay it just gives a regular link in the addy bar once you get to the page in question.

Cannon, let me get it all in order and Ill give you a link. I would post it, but right now it is a test site and I dont want all kind of bogus signups just for the sake of doing so. I have found in the past that posting public links gets me 30 users register and 1 visits occasionally. lol

So yeah.... Im going to go and watch Saw 4 as soon as it's over, Ill get the info to you to see in action.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: .htaccess mod rewrite for user profile pages

PostAuthor: CaNNon » Wed Jan 23, 2008 3:20 pm

cool send the link in a pm please.
Last edited by CaNNon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 11:15 am
Cash on hand: 0.00


Return to General Discussion

Who is online

Registered users: Bing [Bot], Google [Bot]

cron