Page 1 of 1

.htaccess mod rewrite for user profile pages

PostPosted: Mon Jan 21, 2008 1:42 pm
Author: richiebgood
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.

Re: .htaccess mod rewrite for user profile pages

PostPosted: Mon Jan 21, 2008 8:08 pm
Author: CaNNon
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>

PostPosted: Tue Jan 22, 2008 3:32 am
Author: richiebgood
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?

Re: .htaccess mod rewrite for user profile pages

PostPosted: Tue Jan 22, 2008 8:56 am
Author: CaNNon
memberid=1254345


Yea that change looks like they have been logged in then redirected to a page of there own.

Re: .htaccess mod rewrite for user profile pages

PostPosted: Tue Jan 22, 2008 10:30 am
Author: MWE_001
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.

PostPosted: Tue Jan 22, 2008 10:38 am
Author: richiebgood
how does myspace and them work? Do they use ht access i wonder?

Re: .htaccess mod rewrite for user profile pages

PostPosted: Tue Jan 22, 2008 10:42 pm
Author: CaNNon
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?

Re: .htaccess mod rewrite for user profile pages

PostPosted: Wed Jan 23, 2008 2:39 pm
Author: MWE_001
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.

Re: .htaccess mod rewrite for user profile pages

PostPosted: Wed Jan 23, 2008 3:20 pm
Author: CaNNon
cool send the link in a pm please.