Welcome Guest, Not a member yet? Register   Sign In
Whenever I enter a url which isn't the default, I get redirected to dir above root
#4

[eluser]d1a8lo24[/eluser]
Its a little hard to guess why the redirection is not working correctly since we don't know how your app its put together.

Do a simple test for debugging ass follows.

Create a testing controller in your controllers folder.

Code:
class Testing extends CI_Controller {
    
    
    function index()
    {
       redirect('testing/message');
    }

    function message()
    {
       echo 'Yes it works';
    }

Now just type in www.yourdomain.com/testing and that should route you to www.yourdomain.com/testing/message

If this works then your problem is somewhere in your code in this case you will have to provide more information on the code that you're using and if you're using any 3rd party libraries to accomplish a desire result.

If you're using your own code go over it a couple of times and see if you have any other re directions that might get trigger when an action is executed.

If worst comes to worst you might need to upload your code for someone to take a look at it and see where the problem is.


Messages In This Thread
Whenever I enter a url which isn't the default, I get redirected to dir above root - by El Forum - 04-12-2011, 06:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB