I had a web application which all my folders were under
public_html/ like this:
public_html -pages -templates -includes -styles -scripts -images index.php
This worked perfectly. But I wanted to switch to an object oriented approach and changed everything and tried to learn and inspired from zend framework structure model. So I changed my folders structure and it worked perfect locally in apache, new structure is this:
application -models -controllers -views -config -layouts -templates library -functions public_html -styles -scripts -images index.php
So, I transfer it to live server,and now my main application is out of root (public_html) and of course i can not access upper root folders (application,library) from public_html and of course index.php by url.
I can include them but I need to access by url in an anchor tag in case of for example acceess my login.php inside views folder which is inside application folder.
Also, need to access the controller folder from my scripts folder via url (for ajax calls and so on).
I have read that I need to use .htaccess file but i do not know what rule I should use, where shall i put it in and how?