Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Pretty URL for Member Profile
05-10-2012, 06:10 PM #1
Pretty URL for Member Profile
This is the default page for DoubleDee's Profile...
I want to be able to type in a Pretty URL like this...
So I added this line into my root .htaccess...
RewriteRule account/profile/([a-zA-Z0-9_.-]+)$ account/profile.php?user=$1&tab=about-me
It was working yesterday but now isn't?!
(Someone gave me some mod_rewrites to use which didn't work, so I commented them out, but now I wonder if they broke something?!)
Any idea what I did to mess things up?
05-10-2012, 10:04 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,660 Times in 2,629 Posts
This pattern doesn't match the url in question.
It may be better to capture both:
Something doesn't smell right with that and I can't put my finger on it. I can't test it here either so you'll have to give it a shot.PHP Code:
account/profile/([^/]+)/([^/]+)$ account/profile.php?user=$1&tab=$2 [L]