(02-15-2016, 04:28 AM)XMadMax Wrote: (02-15-2016, 03:56 AM)nguyenanhnhan Wrote: Hello XMadMax,
How to config default route ?
Ex:
http://mydomain.com -> http://mydomain.com/apps/mytest/www
One thing is 'Default route', another is 'document_root'.
default route is configured in routes.php, in the application, defaults to :
$route['default_controller'] = 'welcome';
If you want to change your document_root, edit the apache conf for this domain (mydomain):
Code:
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/mydomain/apps/mytest/www"
ServerName mydomain.com
ServerAlias www.mydomain.com
<Directory "C:/xampp/htdocs/mydomain/apps/mytest/www">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted # this line, only for apache >= 2.4
</Directory>
</VirtualHost>
Hello XMadMax,
default route with:
- MVC: $route['default_controller'] = [controller/method]
- HMVC: $route['default_controller'] = [module/controller/method]
- So XHMVC : ??
I do not want the URL is too long when first visit website.
Ex:
http://xhmvc.4amics.com/applications/dem...ser_guide/ instead of http//xhmvc.4amics.com