Welcome Guest, Not a member yet? Register   Sign In
Problem with _remap function (trying to redirect) [SOLVED]
#11

[eluser]andrewtheandroid[/eluser]
or you could use cookies if the username is found in the cookie then redirect them to the profile if not show the default guest page
#12

[eluser]tommizzle[/eluser]
Hi Brian,

So something like:

$route['^(?!login|home|register).*'] = $route['profile'] . "/$0"; ?

Also: I've already created a blacklist table in my DB to reserve names Smile

Thanks,

Tom
#13

[eluser]tommizzle[/eluser]
[quote author="andrewtheandroid" date="1257460231"]hey tom

http://ellislab.com/codeigniter/user-gui.../urls.html

under enabling query strings you could try to enable it so you can go

root.com/index.php?username=this

but other than that I think it's prob better to make a different controller because what you are affectively doing is logging in without a password yeh?

so you could do

root.com/profile/username then in ur "profile" controller have ur code there.. use the segment() function go get ur username and if it doesn't exist redirect them to home.[/quote]

Hi Andrew,

I already have a profile controller, i just want to shorten the URL's as well Smile
#14

[eluser]tommizzle[/eluser]
Awesome - got it working.

Thanks guys!




Theme © iAndrew 2016 - Forum software by © MyBB