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

(This post was last modified: 02-15-2016, 05:10 AM by XMadMax.)

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