Welcome Guest, Not a member yet? Register   Sign In
Routing issues
#1

[eluser]kilishan[/eluser]
First, yes, I have done a search and tried everything that's recommended. Nothing seems to be working for this...

I am working on a social networking site and want to have the url's take you to the user, like so: www.critormiss.com/username. What I have works fine right now, by going to critormiss.com/user/username. It looks up the name and performs as it should.

In my routes, The very last command is:
Code:
$route[':any'] = "user";
From what I've read, this should do it. However, when I try it out, I get the following error from Firefox (2.0.0.7):

Quote:The page isn't redirecting properly.

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

It does, however, redirect me back (after a long wait) to the default controller, which is still welcome.php for now. All of the other routing seems to be working.

I have also tried it in IE 7, but no luck. And I've tried:
Code:
$route['(.*)'] = "user/$1";

and a couple other variations.

I am on Windows Vista, using Xampp for mysql/php/apache. My htaccess file is:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|public|tmp|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

Any ideas what would be causing this?

Thanks!


Messages In This Thread
Routing issues - by El Forum - 09-27-2007, 02:55 PM
Routing issues - by El Forum - 09-27-2007, 03:46 PM
Routing issues - by El Forum - 09-27-2007, 04:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB