Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 3.1.0 with XHMVC
#12

(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
Reply


Messages In This Thread
Codeigniter 3.1.0 with XHMVC - by XMadMax - 02-08-2016, 09:45 AM
RE: Codeigniter 3.0.4 with XHMVC - by XMadMax - 02-09-2016, 07:37 AM
RE: Codeigniter 3.0.4 with XHMVC - by JoellSVK - 02-09-2016, 08:42 AM
RE: Codeigniter 3.0.4 with XHMVC - by nasser.man - 02-14-2016, 06:59 AM
RE: Codeigniter 3.0.4 with XHMVC - by stat - 02-14-2016, 07:41 AM
RE: Codeigniter 3.0.4 with XHMVC - by XMadMax - 02-15-2016, 02:13 AM
RE: Codeigniter 3.0.4 with XHMVC - by XMadMax - 02-15-2016, 04:28 AM
RE: Codeigniter 3.0.4 with XHMVC - by nguyenanhnhan - 02-15-2016, 07:31 AM
RE: Codeigniter 3.0.4 with XHMVC - by XMadMax - 02-15-2016, 08:06 AM
RE: Codeigniter 3.0.4 with XHMVC - by XMadMax - 02-18-2016, 02:39 AM
RE: Codeigniter 3.0.4 with XHMVC - by XMadMax - 03-14-2016, 08:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB