Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto redirect to root folder #703

Closed
malayvuong opened this issue Sep 3, 2017 · 0 comments
Closed

Auto redirect to root folder #703

malayvuong opened this issue Sep 3, 2017 · 0 comments

Comments

@malayvuong
Copy link

When I connect on below link, website will auto redirect to new url:

  • http://localhost:8888/ci4/public/admin redirect to http://localhost:8888/admin
  • http://localhost:8888/ci4/public/admin/ redirect to http://localhost:8888/admin
  • http://localhost:8888/ci4/public/admin/auth/ redirect to http://localhost:8888/admin/auth

But when I connect to http://localhost:8888/ci4/public/admin.html; and routes realized that i connect to V_admin Controllers, and website has print contents of admin page.

I think the issue here is when i connect a folders not exists, website will auto redirect to root folder. On my source code, I set V_admin for admin controllers.
My Routes:

$routes->group('/admin', function($routes)
{
	//	Authentication
	$routes->add('auth.html', 'VAdmin\Controllers\Auth::index');
	$routes->add('auth/(:alpha).html', 'VAdmin\Controllers\Auth::index/$1');
	
	$routes->add('blog',  'Admin\Blog::index');
});
$routes->add('/admin', 'VAdmin\V_admin::index');

I don't know how to fix it or find any problems with my localhost. I used MAMP Pro on Mac Sierra. And CI3 run very well.

@malayvuong malayvuong changed the title Auto redirect to double parent folders Auto redirect to root folder Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant