Am facing the issue when I have two or three module in my framework like
- Album
- Admin
- User
The way I can access the above module using URL is as follows
- Album -> http://localhost/zf2
- Admin -> http://localhost/zf2/index.php/admin
- User -> http://localhost/zf2/index.php/user
But I want access the module in the following way
- Album -> http://localhost/zf2
- Admin -> http://localhost/zf2/admin
- User -> http://localhost/zf2/user
I have checked on the following links but this dose not worked for me
Having trouble with URI routing for modules in Zend Framework
Routing in Zend Framework 2
Zend framework 2 module name routing issue
Zend Framework 2 - Multiple modules by URL
Zend Framework 2 routing issue
404 error, Zend Framework 2 The requested URL could not be matched by routing
For removing the public I have managed by creating the Index.php at the root level of the project with the following code
<?php
define('RUNNING_FROM_ROOT', true);
include 'public/index.php';
Please help me if anyone has faced similar issue