Reputation: 17393
my framework is codeigniter and my site works fine.
example :
www.example.com/
now,I have copied all my codeigniter's folders to another dir like this:
www.example.com/test
now my urls:
www.example.com/profile //works fine
www.example.com/test/profile //not work
I get 404 page not found .
I changed base_url to :
$config['base_url'] = 'http://www.example.com/test';
where is my wrong?
Upvotes: 1
Views: 95
Reputation: 7672
Do you still have all CodeIgniter files in your main directory?
If yes, then you must remove them or you can create SUBDOMAIN to solve the issue.
Note: Codeigniter don't support multiple subdirectory levels in your controllers.
If no, then you must look for your .htaccess
file, it'll be the RewriteBase condition in there.
Upvotes: 0
Reputation: 1488
Codeigniter does not support multiple subdirectory levels in your controllers
But still you can extend it.
You might have to extend Router Class
Upvotes: 0
Reputation: 953
please have a look at your .htaccess
file. Because it'll be in the RewriteBase
condition in there. Check it and tell what You found.
Upvotes: 1