MyBB Community Forums

Full Version: rewriterule profiles
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'd like to make the user profiles accessible through mysite.com/member/username.
I already modded member.php so member.php?action=profile&uname=username shows the correct profile. I tried making a rewrite rule:
RewriteRule ^member/(.*) http//mysite.com/forums/member.php?action=profile&uname=$1 [NC,L]
It works, but the browser will then look in a wrong directory for images & stuff. I could use the [R] parameter (which redirects the browser), but then the url in the browser will change, and I don't think it's good to link to pages which are signed as moved.

What would you do?
First off, you have http// instead of http://.

Second, I'd recommend you actually redirect the browser to member.php, since the images should then show up well. This is because right now it thinks that it is in /member instead of root.

I don't think there is much wrong with linking to a redirect link anyway, lots of people do it. Almost all friendly-URL applications do it.
Alright I'll just use [R] then, thank you. (I did http// on this thread because http:// would be a link Wink)