I know there's SEF methods of doing this, but is there a non-sef way of doing profile redirects? A plugin or component of some kind to handle this? I know it has to be possible as I've seen it done on other social network sites.
SEF is just WAAAAY to slow and heavy on the server. I've already got my tags designed around search friendliness, but really all a search engine needs to know is my main site and I'm fine.
SEF destroys a lot of my components or just goes so slow I can't stand it and this is on a localhost.
So is there an alternative to redirect users from
www.mysite.com/bob to their profile page?
*Edit*
Figured it out. Some might not like it as all 404 errors will attempt to direct to a profile, but IMO it seams like a good thing if you're going for a myspace style site(which I am building and nearly completion.. heck I've even designed it to show all other social network profiles you have in a lightbox).
Anyway here's how:
Add ErrorDocument 404 /404.php to your .htaccess
Make: 404.php and place it in your root directory.
Now add:
[code:1]
<?php
$profile=str_replace("/", "", $_SERVER);
header("Location:index.php?option=com_comprofiler&task=userProfile&user='".$profile."'"«»);
?>
[/code:1]
to it, save. Done.
If you're on a localhost then change / to //
Now all
www.yoursite.com/(username) will direct to their profile. :)
Post edited by: krileon, at: 2008/09/21 01:30