You are on page 1of 1

URL Pattern in Codeigniter

http://codeigniter3.co/welcome/credit_card/2

1. The first segment represents the controller class that should be invoked.
2. The second segment represents the class function, or method, that should be
called.
3. The third, and any additional segments, represent the ID and any variables that
will be passed to the controller.

How to setup virtual host ?

Step 1 :

Folder Path : C:\xampp\apache\conf\extra

File Name : httpd-vhosts.conf

Add below content

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "C:/xampp/htdocs/codeigniter3"
ServerName codeigniter3.co
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

Step 2 :

Folder Path : C:\Windows\System32\drivers\etc

File Name : hosts

Add below content

127.0.0.1 codeigniter3.co

After adding above 2 steps, restart apache to access your site using
codeigniter3.co in your browser

You might also like