Remove /auth/ from url? |
[eluser]oo00_Mr_K_00oo[/eluser]
Hey there I'm using the lovely DX_Auth in my app to look after login etc It's working really well ... and it's a great bit of code. I want to tailor my app though ... DX_Auth uses two url slugs to drive sections of it. index.php/auth/login/ or index.php/auth/register/ and for backend stufff (by default) it's index.php/backend/users/ Of course I've changed the /backend/ bit to something less well known for my admin stuff ... But I want to dump the /auth/ altogether for the users Of course I have .htaccess for ripping out the index.php - but my .htaccess skills are ... well... crap I basically want to have www.mydomain.com/login/ ... point to www.mydomain.com/index.php/auth/login/ I want to then be able to do www.mydomain.com/username ... and use the username variable out of the url .. just like twitter's www.twitter.com/oo00_Mr_K_00oo etc Thoughts? I did try this: Code: <IfModule mod_rewrite.c>
[eluser]oo00_Mr_K_00oo[/eluser]
Yeah I've been looking at that .. I realised you posted that answer on a similar question - I was going to pull mine but ....I'm really struggling to get routing sorted out ... Do you simply say $route['url/expected'] = anything/I/want/here; - well within reason? So I could do ... $route['/login/'] = "/auth/login/"; I must be doing something else wrong if that's the case .. hmmm
[eluser]Dam1an[/eluser]
I normally don't have forward slashes at the start/end, that might be causing you some problems
[eluser]oo00_Mr_K_00oo[/eluser]
YES!! ... got it sorted and I do love the power of these routes ... oh man I'm having fun with them now - THANK YOU!! yea - it was the / that was causing the issue
[eluser]Dam1an[/eluser]
I'd assume it cause if you start a route with a forwrd slash, it looks for an absolute path, whereas you want yours to all be relative |
Welcome Guest, Not a member yet? Register Sign In |