I am working on a CakePHP application. When I uploaded it to my host's public_html directory I have created a subdirectory for it.
So right now the structure is like that: domain.com/subdircake/.
I have included a .htaccess file in the public_html root, and I have changed the index.php in the webroot folder to point the subdirectory.
I don't know if it is a routing issue inside the cakeapp or a mod_rewrite issue because of a wrong .htaccess configuration, but what happens is this.
- I can access the domain and it shows the home page for the app.
- The links are pointing to domain.com/subdircake/action instead of domain.com/action.
- When I am forcing the url to be domain.com/action it works and this leaves me stressed because I don't know why.
So I think it has to be some rewrite issue but I don't have any clues.
Anyone any idea?